- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Permisions for others
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-05-2002 11:40 AM
04-05-2002 11:40 AM
Permisions for others
MDF
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-05-2002 11:46 AM
04-05-2002 11:46 AM
Re: Permisions for others
You can use the command
chmod 702 file.
Make the owner of the parent directory to root.
This will not make them to read or delete the file. But the problem is, whatever they write into the file using vi will overwrite the contents. They can use >> command to write into it.
-Sri
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-05-2002 11:54 AM
04-05-2002 11:54 AM
Re: Permisions for others
Say the dir is /opt/apps/dirA owned by root:lab .
# cd /opt/apps
# chmod 752 dirA
==> which gives rwxr-x-w-
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-05-2002 12:16 PM
04-05-2002 12:16 PM
Re: Permisions for others
1st three from left are owner of file.
middle three are for group permission for that file.
last three are others permission.
rwx = 4 2 1 = 7 if you want to set that
r-x = 4 1 = 5 if setup is read write
So if setup is
rwxr-x-w- then 752 = rwx for owner, rx for group and write for others.
Sachin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-05-2002 12:22 PM
04-05-2002 12:22 PM
Re: Permisions for others
How can i resolve this problem?
MDF
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-05-2002 12:24 PM
04-05-2002 12:24 PM
Re: Permisions for others
Moral => there is NO way to grant write perms w/o delete perms.
Rgds,
Jeff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-05-2002 12:55 PM
04-05-2002 12:55 PM
Re: Permisions for others
I think what you really want is to set the directory's sticky bit. This will prevent the removal (deletion) of a file by a user other than the owner, or of course, 'root'. In this way, any user can write (create) files in the directory and listings of the contents of the directory can still be obtained. The permissions of the files themselves will allow or deny reading them. Have a look at the man pages for 'chmod'. Do this:
# chmod 1777 mydir
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-05-2002 03:01 PM
04-05-2002 03:01 PM
Re: Permisions for others
Bill Hassell, sysadmin