- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Unix Command
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-30-2006 11:45 PM
тАО03-30-2006 11:45 PM
Unix Command
Thanx
Rahim...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-30-2006 11:46 PM
тАО03-30-2006 11:46 PM
Re: Unix Command
gives rwx ro owner and rx to group and others.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-30-2006 11:47 PM
тАО03-30-2006 11:47 PM
Re: Unix Command
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-30-2006 11:52 PM
тАО03-30-2006 11:52 PM
Re: Unix Command
see man chmod
Grant execute to all users (dangerous!)
chmod -R a+x
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-31-2006 12:29 AM
тАО03-31-2006 12:29 AM
Re: Unix Command
Hi,
The chmod command with -R ( recursive ) applies the permission to all files and subdirectories too.
Regards,
Siva.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-31-2006 12:39 AM
тАО03-31-2006 12:39 AM
Re: Unix Command
do the following:
chmod -R 755 /yourdir
Cheers
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-31-2006 03:36 AM
тАО03-31-2006 03:36 AM
Re: Unix Command
Here it is :
# chmod -R ugo+x dirname
Cheers,
Raj.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-01-2006 06:32 PM
тАО04-01-2006 06:32 PM
Re: Unix Command
chmod -R 755 /
Changes all Directories, Sub-Dir and Files to RWX for Owner, r_x for Group and r_x for others.
Note:- Hope you realize seriousness of 755 -R.
This will not apply for the Newly created files and folder. (your umask will matter there).
Cheers
MS
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-02-2006 06:04 AM
тАО04-02-2006 06:04 AM
Re: Unix Command
find /specific_directory -type d -print -exec chmod a+x {} \;
The find command locates only the specific_directory and all sub-directories, but ignores any files.
NOTE: chmod -R is an extremely dangerous command as it can make unwanted changes to all directories and files in a directory tree. Be very cautious about using the -R option. Also make note that an absolute numeric value (such as 755 or 666 or 7777) will destroy sticky bits and set UID and GID bits, rendering certain programs inoperable. Adding +x to a bunch of directories is genrally safe as it allows all users to search through (execute) the directory. Adding +w to all users for a set of directories in inherently unsafe as it allows all users to delete or rename the files (and directories) in the directory.
Bill Hassell, sysadmin