HPE GreenLake Administration
- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- Re: file permission
Operating System - Linux
1830241
Members
5066
Online
109999
Solutions
Forums
Categories
Company
Local Language
back
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
back
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
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Topic Options
- 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-03-2003 12:39 AM
03-03-2003 12:39 AM
file permission
How can I set to allow a specific user to write sth to a file , ( but other users can't do that even they are in the same group) ?
Thx.
Thx.
3 REPLIES 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-03-2003 01:45 AM
03-03-2003 01:45 AM
Re: file permission
Change the owner of the file to the user you want to write to it, and then set it so there's only u+w, i.e.
chown user file
chmod 644 file
This would state that all users can 'read' the file, but only 'user' can write to it.
The number is the bit-mask of the permissions. Simply put:
read = 4
write = 2
execute = 1
In the order of:
user
group
world
So for the first column, the 'user' column, they can 'read' and 'write', thus '4 + 2' = 6.
The second column, the 'group' column, can 'read', thus '4'.
There is a first bit of which goes infront of those, but it defaults to 0 if you don't specify it. Read 'man chmod' for more details on that, and other user-permissions.
(NOTE: This is only one way of setting permissions. There are many others. For instance, the command 'chmod u=rw,go=r file' would do the same as the above.)
chown user file
chmod 644 file
This would state that all users can 'read' the file, but only 'user' can write to it.
The number is the bit-mask of the permissions. Simply put:
read = 4
write = 2
execute = 1
In the order of:
user
group
world
So for the first column, the 'user' column, they can 'read' and 'write', thus '4 + 2' = 6.
The second column, the 'group' column, can 'read', thus '4'.
There is a first bit of which goes infront of those, but it defaults to 0 if you don't specify it. Read 'man chmod' for more details on that, and other user-permissions.
(NOTE: This is only one way of setting permissions. There are many others. For instance, the command 'chmod u=rw,go=r file' would do the same as the above.)
One long-haired git at your service...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-03-2003 02:02 AM
03-03-2003 02:02 AM
Re: file permission
hi,
can u check the man pages of acl for more info.
-balaji
can u check the man pages of acl for more info.
-balaji
Its Always Important To Know, What People Think Of You. Then, Of Course, You Surprise Them By Giving More.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-03-2003 12:05 PM
03-03-2003 12:05 PM
Re: file permission
chacl ???user.group +w??? file
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
Company
Events and news
Customer resources
© Copyright 2025 Hewlett Packard Enterprise Development LP