- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- Re: 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
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
тАО05-14-2006 08:14 PM
тАО05-14-2006 08:14 PM
assumption of the folder permission:
root@ex10110:/home/oracle# ll | grep test
drwxr-xr-x 2 oracle dba 96 May 15 10:05 test
assumption of the file permission:
root@ex10110:/home/oracle/test# ll
total 0
-rw-r--r-- 1 oracle dba 0 May 15 10:05 blah
-rw-r--r-- 1 oracle dba 0 May 15 10:05 blah2
now when i create a file as root then the file permissions looks as follow:
-rw-r--r-- 1 root sys 0 May 15 10:05 blubb
what can i do, that the folder/file/owner/group permissions are like the permissions of the higher folder even when I create the files as an other user? I have nowhere found an option in chmod, chown or chgrp, is there an other command?
Regards
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-14-2006 08:51 PM
тАО05-14-2006 08:51 PM
Re: Permissions
You can use the following:
create some group and add all users that you would like to be able to write under that directory to this group.
change the group ownership of that directory:
chgrp groupname foldername
Execute
chmod g+s foldername
This will make all files created in this folder to have the same group as the folder.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-14-2006 11:01 PM
тАО05-14-2006 11:01 PM
Re: Permissions
when I create a new file with any user, then the permission of the files are 644, how can I take the permission of the higher folder?
Regards
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-14-2006 11:38 PM
тАО05-14-2006 11:38 PM
Re: Permissions
I don't think that this is doable.
AFAIK, you should change default umask for *all* users if you want to change new files permission.
Rgds,
Vitaly
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-15-2006 12:31 AM
тАО05-15-2006 12:31 AM
Re: Permissions
in fact there is no chance to set an option equivalent to this in windows "Allow inheritable permissions from parent to propagate to this object"?
Regards
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-15-2006 01:07 AM
тАО05-15-2006 01:07 AM
SolutionNormally the new file gets its group ownership in the same way (i.e. the same as the creator's primary group). This *can* be changed: by setting the directory's group as desired and setting the directory's sgid permission (chmod g+s directoryname) all files and directories created in the directory get the same group ownership as the directory. The sgid permission gets also added automatically to all new subdirectories of the original directory with the sgid permission.
(In some Unix-like operating systems, files and directories created as root will ignore the directory-sgid effect.)
The permissions (read/write/execute bits) are determined according to the user's umask setting, and no directory can affect that.
However, in most modern Linuxes, each new user gets a personal group of his own (with a GID equal to the user's UID). This allows you to set your system's default umask as 002 (or 007). With that value, the users will create files in their home directories that are group writable by default... but that is no problem, because the group that has the write permissions contains only the user himself.
With this setup, creating group writable directories becomes easy: the admin creates the top directory as root, then sets the correct group ownership, permissions and sgid for the directory. After that, the users belonging to the correct group can do all the rest.