- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Complicated Permission Problem
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
08-23-2005 12:47 AM
08-23-2005 12:47 AM
drwxr-xr-x 2 root sys 96 Aug 23 08:41 ./spec
lrwxrwxr-x 1 jdexe jdexe 24 Aug 23 08:41 ./spec/file.link -> ../spec.master/file.real
drwxr-xr-x 2 jdexe jdexe 96 Aug 23 08:36 ./spec.master
-rw-rw-r-- 1 jdexe jdexe 12 Aug 23 08:38 ./spec.master/file.real
The part that makes this complicated is that I would like to allow the JDEXE user to be able to create new directories inside of the "spec" directory but just nothing besides a read / write to the links.
Is there a way to do this with ACLs or some other type of alternative permission mechanism that I don't know about? Or, as I suspect, are we out of luck??
Thanks for all your help,
Ty
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-23-2005 01:09 AM
08-23-2005 01:09 AM
Re: Complicated Permission Problem
If you change link owner to root:sys, jdexe won't be able to modify link but will be able to create new directories inside spec directory and access to /spec.master/file.real under file.real configured permissions (-rw-rw-r-- jdexe jdexe).
I hope this is you need.
Regards,
Carles
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-23-2005 01:14 AM
08-23-2005 01:14 AM
Re: Complicated Permission Problem
wcores04(/tmp/link_test/spec)$ ll
total 0
lrwxr-xr-x 1 root sys 24 Aug 23 09:12 file.link -> ../spec.master/file.real
wcores04(/tmp/link_test/spec)$ rm file.link
wcores04(/tmp/link_test/spec)$ ll
total 0
wcores04(/tmp/link_test/spec)$ whoami
jdexe
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-23-2005 01:18 AM
08-23-2005 01:18 AM
Re: Complicated Permission Problem
What are the perms on directory where link and file resides. Also, is this file needs to be executable, if not you just keep read perms for group and others.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-23-2005 01:23 AM
08-23-2005 01:23 AM
Re: Complicated Permission Problem
The permissions for the directories are listed in my initial post. The links don't need to be executable they jsut need to be RW for jdexe but I don't want them to be able to remove the file..
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-23-2005 02:04 AM
08-23-2005 02:04 AM
Re: Complicated Permission Problem
Not sure why you're seeing what you're seeing... See below
$ find . | xargs ll -d
drwxr-xr-x 3 root sys 96 Aug 23 09:57 .
lrwxr-xr-x 1 root sys 9 Aug 23 09:57 ./link -> real/file
drwxr-xr-x 2 testusr sys 96 Aug 23 09:56 ./real
-rwxr-xr-x 1 testusr sys 39 Aug 23 09:59 ./real/file
$ id
uid=851(testusr) gid=20(users)
$ rm link
rm: link not removed. Permission denied
$ cat link
this is the content of the file "file"
$ date >> link
$ cat link
this is the content of the file "file"
Tue Aug 23 10:04:13 EDT 2005
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-23-2005 02:10 AM
08-23-2005 02:10 AM
Re: Complicated Permission Problem
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-23-2005 02:12 AM
08-23-2005 02:12 AM
Re: Complicated Permission Problem
drwxr-xr-x 3 root sys 96 Aug 23 09:57 .
I got the same results as you did when "root" owned the parent dir of link. Try to change the ownership of the parent dir to your test user and then try to remove the link.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-23-2005 02:19 AM
08-23-2005 02:19 AM
Re: Complicated Permission Problem
You can create a folder and give "other" read/write/exec permission, but with the sticky bit, a user can only create new files or do operations on files "owned" by the themselves. This should protect other objects under your "spec" directory
To assign sticky bit-
chmod 1777 spec
HTH
-- Rod Hills
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-23-2005 02:28 AM
08-23-2005 02:28 AM
Re: Complicated Permission Problem
wcores04(/tmp/link_test)$ find . | xargs ll -d
drwxr-xr-x 4 root sys 96 Aug 23 08:36 .
drwx-----T 2 jdexe jdexe 96 Aug 23 10:26 ./spec
drwxr-xr-x 2 jdexe jdexe 96 Aug 23 08:36 ./spec.master
-rw-rw-r-- 1 jdexe jdexe 22 Aug 23 10:25 ./spec.master/file.real
lrwxr-xr-x 1 root sys 24 Aug 23 10:25 ./spec/file.link -> ../spec.master/file.real
wcores04(/tmp/link_test)$ cd spec
wcores04(/tmp/link_test/spec)$ id
uid=145(jdexe) gid=116(jdexe) groups=103(icon),107(jdepod),108(wtech),109(jdecomm),110(jdeconv),111(edi),123(mqm)
wcores04(/tmp/link_test/spec)$ touch test.file
wcores04(/tmp/link_test/spec)$ ll
total 0
lrwxr-xr-x 1 root sys 24 Aug 23 10:25 file.link -> ../spec.master/file.real
-rw-rw-r-- 1 jdexe jdexe 0 Aug 23 10:27 test.file
wcores04(/tmp/link_test/spec)$ rm file.link
wcores04(/tmp/link_test/spec)$ ll
total 0
-rw-rw-r-- 1 jdexe jdexe 0 Aug 23 10:27 test.file
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-23-2005 02:35 AM
08-23-2005 02:35 AM
Re: Complicated Permission Problem
drwxrwxrwt 2 jdexe jdexe 96 Aug 23 10:34 spec
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-23-2005 02:38 AM
08-23-2005 02:38 AM
SolutionThat's because your spec directory is owner by jdexe. If you make it owned by root:sys and permissions 1777, that should prevent jdexe from removing root's files. jdexe will still be able to remove his/her own files, though...
--Greg
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-23-2005 02:47 AM
08-23-2005 02:47 AM
Re: Complicated Permission Problem
Thanks for all the help everyone..
Ty
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-23-2005 02:49 AM
08-23-2005 02:49 AM
Re: Complicated Permission Problem
My idea ist to use only the jdexe group to grant write permission. If the owner of the real file is e.g. root, then deletion is prevented by the t-flag.
Using your example above:
chown root:jdexe ./spec
chmod 775 ./spec
chmod u+t ./spec
chown root:jdexe ./spec.master/file.real
Result would be:
drwxrwxr-t 2 root jdexe 96 Aug 23 08:41 ./spec
lrwxrwxr-x 1 jdexe jdexe 24 Aug 23 08:41 ./spec/file.link -> ../spec.master/file.real
drwxr-xr-x 2 jdexe jdexe 96 Aug 23 08:36 ./spec.master
-rw-rw-r-- 1 root jdexe 12 Aug 23 08:38 ./spec.master/file.real
Give it a try!
Dietmar.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-23-2005 02:50 AM
08-23-2005 02:50 AM