≡ Menu

chmod command

Linux / UNIX: Restrict Access To A Given Command

How do I restrict access to a given command for instance /opt/apps/start, to authorized users only under Linux / UNIX / BSD operating system?
[click to continue…]

Solaris UNIX Configure Disk Quota For UFS File System

How do I configure file system quotas to control how much available storage space can be used on a given UFS file system (such as /export/home) under Solaris UNIX operating systems?
[click to continue…]

Linux / UNIX List User Dot-Files

How do I list only user dot-files from $HOME under UNIX and Linux operating systems? How do I ensure that user Dot-Files are not World-writable?
[click to continue…]

SSH Authentication refused: bad ownership or modes for file /home/user/.ssh/authorized_keys2

I‘m trying to login using ssh keys but server is only allows to login me using a password. The following message is logged into server /var/log/secure file:

Feb 25 06:36:50 ns5 sshd[26681]: Authentication refused: bad ownership or modes for file /home/user/.ssh/authorized_keys2

How do I fix this problem?
[click to continue…]

Linux / UNIX Find All World-Writable Directories Have Sticky Bits Set

How do I find out all world writable directories have sticky bits set under CentOS Linux server?
[click to continue…]

Linux Restrict Execution of /usr/sbin/userhelper to Console Users

I‘m CentOS Linux version 5.x user and I’d like to restrict execution of /usr/sbin/userhelper to console users only in xusers group?
[click to continue…]

Access Any Remote Server Port Without Modifying Firewall Settings

Q. I’ve couple of remote servers and I’d like to access few admin only application running on port 10000 and 3001. My firewall only allows port 80, 443, 25, 22 and 110 for public access. Do I need to open port 10000 and 3001 for everyone using firewall? How do I access my admin only apps without opening port 10000 and 3001?
[click to continue…]

How To Run the .sh File Shell Script In Linux / UNIX

I’ve downloaded software for Linux or Unix-like system from the Internet. There is a file called install.sh. How do I run an .sh file to install the software?
[click to continue…]

Linux / UNIX Setup and Run PHP Script As A Cron Job

I‘ve written a PHP script. I would like to run it as a cron job. I’m using CentOS server with Apache web server. How do I setup a PHP script as a cron job on a Linux or Unix-like systems?
[click to continue…]

Chmod Numeric Permissions Notation UNIX / Linux Command

Can you provide more information about chmod command octal mode number notation?
[click to continue…]