- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Changing file permissions
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
Forums
Discussions
Discussions
Discussions
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
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
04-10-2003 10:25 AM
04-10-2003 10:25 AM
I have a very simple request for a sysadmin. I need to change the permission on a file form -rw-r--r-- to -rwxrwxrwx. I read the man pages on chmod and came up with:
sys000#chmod a+x myfile
Is this correct? I am running HPUX 11.0
Thanx,
Carla
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-10-2003 10:27 AM
04-10-2003 10:27 AM
Solution# chmod 777 myfile
You get the 777 by:
4=read permission
2=write permission
1=execute permission
Add them together and you get 7, so 777 for owner, group and world users.
Make sense?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-10-2003 10:28 AM
04-10-2003 10:28 AM
Re: Changing file permissions
Pete
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-10-2003 10:29 AM
04-10-2003 10:29 AM
Re: Changing file permissions
chmod a+wx myfile
to cover both write and execute permission.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-10-2003 10:30 AM
04-10-2003 10:30 AM
Re: Changing file permissions
or
chmod ugo+r+w+x file
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-10-2003 11:23 AM
04-10-2003 11:23 AM
Re: Changing file permissions
I will use
chmod 777 filename
Regards,
DR
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-10-2003 11:44 AM
04-10-2003 11:44 AM
Re: Changing file permissions
Far too often, Unix for Beginners books and courses will blindly tell newbies that 777 (or rwxrwxrwx) permissions solve problems, when just the opposite is true. Never allow any important file to be writable for eveeryone on the system.
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-10-2003 12:07 PM
04-10-2003 12:07 PM
Re: Changing file permissions
I will be assigning points to all shortly!
Thanx,
Carla
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-10-2003 12:19 PM
04-10-2003 12:19 PM
Re: Changing file permissions
Just curious,
Kel
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-10-2003 04:19 PM
04-10-2003 04:19 PM
Re: Changing file permissions
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-10-2003 04:43 PM
04-10-2003 04:43 PM
Re: Changing file permissions
# chmod 555 filename
would give -r-xr-xr-x permission
# chmod 755 filename
would give -rwxr-xr-x permissions