- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- Read/write permissions to a specific directory
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
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
тАО08-06-2009 11:11 AM
тАО08-06-2009 11:11 AM
drwxr-xr-x 4 root bin 4096 Aug 6 11:39 bin
This directory is owned by root. I cant grant them root access and I cant change the permissions of this directory as advised by TSM administrator.
My question is can I use ACL to grant a group of users write access to this directory or is there any way to grant these group of users write access to this directory without messing up the permissions.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-06-2009 11:51 AM
тАО08-06-2009 11:51 AM
SolutionI think that you can just create a group called tsm and modify the permissions. Why "write" permission is needed?
Option 1:
groupadd tsm
chgrp tsm bin
chmod g+w bin
Option 2:
setfacl -m g:tsm:rwx bin
Option 3:
Use SUDO for specific actions.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-06-2009 11:54 AM
тАО08-06-2009 11:54 AM
Re: Read/write permissions to a specific directory
Thats why they are asking for write permissions to this directory.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-06-2009 11:56 AM
тАО08-06-2009 11:56 AM
Re: Read/write permissions to a specific directory
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-06-2009 12:00 PM
тАО08-06-2009 12:00 PM
Re: Read/write permissions to a specific directory
i have only a link
Storage Manager for Linux
http://publib.boulder.ibm.com/infocenter/tivihelp/v1r1/topic/com.ibm.itsml.doc/anrlgd5502.htm#ToC_470
mikap
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-06-2009 12:07 PM
тАО08-06-2009 12:07 PM
Re: Read/write permissions to a specific directory
Then, they only need permissions to write the file, not the directory.
If you have a detailed description of the need, probably I can give you the options.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-07-2009 06:29 AM
тАО08-07-2009 06:29 AM
Re: Read/write permissions to a specific directory
Here is the scenario. The current permissions on the bin directory is:
And here are the files in this directory:
total 22520
drwxr-xr-x 4 root bin 4096 Aug 6 02:23 .
drwxr-xr-x 3 root bin 4096 Nov 18 2008 ..
-r-xr-xr-x 1 root bin 2836235 May 31 2007 dsmadmc
-r-xr-xr-x 1 root bin 4816712 May 31 2007 dsmagent
-r-xr-xr-x 1 root bin 4144984 May 31 2007 dsmc
-r-xr-xr-x 1 root bin 2886332 May 31 2007 dsmcad
-rw-rw-r-- 1 root root 42703 Aug 6 12:55 dsmerror.log
-r-xr-xr-x 1 root bin 5085 May 31 2007 dsmj
-r--r--r-- 1 root bin 2102631 Jun 6 2007 dsm.jar
-r--r--r-- 1 root root 746 Nov 18 2008 dsm.opt
-r--r--r-- 1 root bin 782 Jun 6 2007 dsm.opt.smp
-r--r--r-- 1 root bin 638931 Jun 6 2007 dsm_pref.jar
-rw-r--r-- 1 root root 213891 Aug 6 08:23 dsmsched.log
-r-xr-xr-x 1 root bin 12509 Jun 6 2007 dsmswitch
-rw-r--r-- 1 root root 739 Nov 18 2008 dsm.sys
-r--r--r-- 1 root bin 971 Jun 6 2007 dsm.sys.smp
-rwsr-xr-x 1 root bin 2711734 May 31 2007 dsmtca
-r-xr-xr-x 1 root bin 274839 Jun 6 2007 dsmtrace
lrwxrwxrwx 1 root root 16 Nov 18 2008 en_US -> ../../lang/en_US
-r-xr-xr-x 1 root bin 318 Jun 6 2007 favicon.ico
drwxr-xr-x 2 root bin 4096 Nov 18 2008 images
-rw-r--r-- 1 root root 228 Nov 18 2008 inclexcl
-r--r--r-- 1 root bin 108575 Jun 6 2007 jdom.jar
-r--r--r-- 1 root bin 349114 Jun 6 2007 jh.jar
drwxr-xr-x 2 root bin 4096 Nov 18 2008 plugins
-rw-r--r-- 1 root root 977 Aug 6 02:16 tsmstats.ini
-r--r--r-- 1 root bin 850653 Jun 6 2007 uil.jar
-r--r--r-- 1 root bin 834852 Jun 6 2007 xercesImpl_2_2_1.jar
-r--r--r-- 1 root bin 83089 Jun 6 2007 xmlParserAPIs_2_2_1.jar
The customer wants to create 15 users and all of them have following sets of permissions:
1) rwx on directory /opt/Tivoli/..bin
2) rw on files dsmerror.log;dsmsched.log;dsm.opt;dsm.sys;inclexcl
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-07-2009 06:30 AM
тАО08-07-2009 06:30 AM
Re: Read/write permissions to a specific directory
Here is the scenario. The current permissions on the bin directory is:
drwxr-xr-x 4 root bin 4096 Aug 6 11:39 bin
And here are the files in this directory:
total 22520
drwxr-xr-x 4 root bin 4096 Aug 6 02:23 .
drwxr-xr-x 3 root bin 4096 Nov 18 2008 ..
-r-xr-xr-x 1 root bin 2836235 May 31 2007 dsmadmc
-r-xr-xr-x 1 root bin 4816712 May 31 2007 dsmagent
-r-xr-xr-x 1 root bin 4144984 May 31 2007 dsmc
-r-xr-xr-x 1 root bin 2886332 May 31 2007 dsmcad
-rw-rw-r-- 1 root root 42703 Aug 6 12:55 dsmerror.log
-r-xr-xr-x 1 root bin 5085 May 31 2007 dsmj
-r--r--r-- 1 root bin 2102631 Jun 6 2007 dsm.jar
-r--r--r-- 1 root root 746 Nov 18 2008 dsm.opt
-r--r--r-- 1 root bin 782 Jun 6 2007 dsm.opt.smp
-r--r--r-- 1 root bin 638931 Jun 6 2007 dsm_pref.jar
-rw-r--r-- 1 root root 213891 Aug 6 08:23 dsmsched.log
-r-xr-xr-x 1 root bin 12509 Jun 6 2007 dsmswitch
-rw-r--r-- 1 root root 739 Nov 18 2008 dsm.sys
-r--r--r-- 1 root bin 971 Jun 6 2007 dsm.sys.smp
-rwsr-xr-x 1 root bin 2711734 May 31 2007 dsmtca
-r-xr-xr-x 1 root bin 274839 Jun 6 2007 dsmtrace
lrwxrwxrwx 1 root root 16 Nov 18 2008 en_US -> ../../lang/en_US
-r-xr-xr-x 1 root bin 318 Jun 6 2007 favicon.ico
drwxr-xr-x 2 root bin 4096 Nov 18 2008 images
-rw-r--r-- 1 root root 228 Nov 18 2008 inclexcl
-r--r--r-- 1 root bin 108575 Jun 6 2007 jdom.jar
-r--r--r-- 1 root bin 349114 Jun 6 2007 jh.jar
drwxr-xr-x 2 root bin 4096 Nov 18 2008 plugins
-rw-r--r-- 1 root root 977 Aug 6 02:16 tsmstats.ini
-r--r--r-- 1 root bin 850653 Jun 6 2007 uil.jar
-r--r--r-- 1 root bin 834852 Jun 6 2007 xercesImpl_2_2_1.jar
-r--r--r-- 1 root bin 83089 Jun 6 2007 xmlParserAPIs_2_2_1.jar
The customer wants to create 15 users and all of them have following sets of permissions:
1) rwx on directory /opt/Tivoli/..bin
2) rw on files dsmerror.log;dsmsched.log;dsm.opt;dsm.sys;inclexcl
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-07-2009 06:40 AM
тАО08-07-2009 06:40 AM
Re: Read/write permissions to a specific directory
>>
>> 1) rwx on directory /opt/Tivoli/..bin
>> 2) rw on files dsmerror.log;dsmsched.log;dsm.opt;dsm.sys;inclexcl
If the customer asked to do exactly that, then option 1 is enough.
Just remember, that providing write access to the directory they are able to delete/replace files even if they does not have no permissions to the file, so, if you provide requirement 1, there is no option to provide requirement 2 only, they will be able to replace any file on the directory.