- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- file permission
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-11-2003 01:32 AM
04-11-2003 01:32 AM
file permission
user, group, others
Anyone can tell me, what's the others?
Where to reference others permission?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-11-2003 01:37 AM
04-11-2003 01:37 AM
Re: file permission
This should help:-
A numeric mask replaces the current file mode creation mask. It is specified as an unsigned octal integer, constructed from the logical OR (sum) of the following mode bits (leading zeros can be omitted):
0400 ( a=rwx,u-r) Read by owner
0200 ( a=rwx,u-w) Write by owner
0100 ( a=rwx,u-x) Execute (search in directory) by owner
0040 ( a=rwx,g-r) Read by group
0020 ( a=rwx,g-w) Write by group
0010 ( a=rwx,g-x) Execute/search by group
0004 ( a=rwx,o-r) Read by others
0002 ( a=rwx,o-w) Write by others
0001 ( a=rwx,o-x) Execute/search by others
Paula
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-11-2003 01:37 AM
04-11-2003 01:37 AM
Re: file permission
Try this in your shell -
$ id
the above will provide you your user id and your group id.
All other users having your group id as theirs too, will enjoy the permissions you set for the group.
All users in general whatsoever their group id, will enjoy the permissions that you set in the others part.
So, it is always best to give minimal permissions (say read only, or if it is an executable file only execution rights) in the others part.
see the following
man umask
man chmod
- ramd.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-11-2003 01:38 AM
04-11-2003 01:38 AM
Re: file permission
You can use chmod o+r (or +w or +x) to set others permission. If you list a file (wioth ls -l) the others permission is the last 3 digits.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-11-2003 01:40 AM
04-11-2003 01:40 AM
Re: file permission
Also this:-
http://docs.hp.com/cgi-bin/fsearch/framedisplay?top=/hpux/onlinedocs/B2355-90682/B2355-90682_top.html&con=/hpux/onlinedocs/B2355-90682/00/00/26-con.html&toc=/hpux/onlinedocs/B2355-90682/00/00/26-toc.html&searchterms=owner&queryid=20030411-033932
Paula
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-11-2003 01:41 AM
04-11-2003 01:41 AM
Re: file permission
Other (o) - Other refers to everyone except the owner of the file and everyone that is in the group to which the file belongs.
see: http://www.cs.indiana.edu/Facilities/help/permissions.html
regards
Yogeeraj
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-15-2003 04:55 AM
04-15-2003 04:55 AM
Re: file permission
The permissions are *exclusive*, i.e. you are either the owner *or* a member of the group *or* other. So this fails:
$ id
uid=101(franks) gid=101(ftp_group)
$ ll file
-------rwx 2 franks ftp_group 8 Apr 15 14:48 file
$ cat file
cat: Cannot open file: Permission denied
$
I.e. I can not read this file, even while I (franks) am the owner and a member of the group (ftp_group). Why? Because I am *not* in the set "other".
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-15-2003 05:01 AM
04-15-2003 05:01 AM
Re: file permission
- ramd.