- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Permission Related
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
07-08-2003 09:34 PM
07-08-2003 09:34 PM
Q: Can I restrict user abc to delete the files owned by xyz under /test?
By default user abc can delete this files even if the permission is 000.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-08-2003 09:53 PM
07-08-2003 09:53 PM
Re: Permission Related
permissions onf files owned by xyz can be 700
owner can do as he/she pleases, nobody else can see or change anything.
chmod 700 file_owned_by_xyz
That would do it. There would be no sharing
perhaps chmod a+r file_owned_by_xyz
perhaps chmod o-w file_owned_by_xyz
perhaps chmod g-w file_owned_by_xyz
Anyone can read, nobody sles can write(thereby delete).
There are lots of answers.
Is this a multiple choice question?
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-08-2003 09:58 PM
07-08-2003 09:58 PM
Re: Permission Related
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-08-2003 10:40 PM
07-08-2003 10:40 PM
Re: Permission Related
Here is an alternative you might consider:
chown root:users /test
chmod 1770 /test
chmod 750 /test/*
chgrp users /test/*
Presuming users "abc" and "xyz" are members of the "users" group, they can access the directory "/test" but can only remove files that they own.
Of course, the files themselves must not be writable by group, or they can be removed by any user that is a member of "users".
Hope this helps,
Ollie.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-09-2003 12:41 AM
07-09-2003 12:41 AM
Re: Permission Related
Try the sticky-bit!! I copied a piece of a hp-ux manual. Should do the trick for you!!
chmod u+t /test
The most common modern meaning of sticky bits is in the context of directories. When the sticky bit is set on directories, files in that directory cannot be moved or renamed, except by the owner or superuser, even if the privileges on the file would otherwise permit such modifications. The sticky bit is commonly set on the /tmp directory as a security measure
(please assign points, if it helps of course!)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-09-2003 03:00 AM
07-09-2003 03:00 AM
Re: Permission Related
wls61@dhlin1vb:/u1/home/srini> ll -d a
drwxr-xr-t 2 root sys 96 Jul 9 18:42 a/
wls61@dhlin1vb:/u1/home/srini> cd a
wls61@dhlin1vb:/u1/home/srini/a> ll
total 0
-rw-r----- 1 wls61 dhl 0 Jul 9 18:05 c
-rw-r----- 1 srini dhl 0 Jul 9 18:05 d
wls61@dhlin1vb:/u1/home/srini/a> rm c
c: ? (y/n) y
rm: c not removed. Permission denied
wls61@dhlin1vb:/u1/home/srini/a>
Whay I am not able to remove the id using wls61? If I change the ownership of dir 'a' to id 'srini' , then 'srini' is able to delete file 'c' which is owned by wls61 id.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-09-2003 03:02 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-09-2003 11:25 PM
07-09-2003 11:25 PM
Re: Permission Related
the previous response is correct - you don't have write permission on the directory and the directory is home for srini, so srini can delete the file - you can't.