- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: can anyone except root and owner change a file...
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
12-09-2004 01:59 AM
12-09-2004 01:59 AM
if a user can give someone else(except root) privilege to manage the file's privilege, like change file's read,write ,x privilege.
i use the command setprivgrp users CHOWN
but it does't work.
please help.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-09-2004 02:02 AM
12-09-2004 02:02 AM
Re: can anyone except root and owner change a file's read,write,x privilege?
Pete
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-09-2004 02:03 AM
12-09-2004 02:03 AM
Re: can anyone except root and owner change a file's read,write,x privilege?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-09-2004 02:06 AM
12-09-2004 02:06 AM
Re: can anyone except root and owner change a file's read,write,x privilege?
Example:
ll /etc/hosts
-r--r--r-- 1 bin bin 567 Jun 3 2004 /etc/hosts
Only root can change that.
ll /home/gwild/.profile
-rw-r--r-- 1 gwild adm 140 Oct 6 12:09 /home/gwild/.profile
Only root and gwild can change that.
ll /usr/local/ge/sha1.clog
-rw-rw---- 1 root adm 10565 Oct 1 10:02 /usr/local/ge/sha1.clog
Only root and those in the adm group can change that.
Rgds...Geoff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-09-2004 02:08 AM
12-09-2004 02:08 AM
Re: can anyone except root and owner change a file's read,write,x privilege?
I just tried this from a user who was in the group of a file and got an error "Not owner"
Your only other option would be to utilize sudo in some fashion.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-09-2004 02:11 AM
12-09-2004 02:11 AM
Re: can anyone except root and owner change a file's read,write,x privilege?
$ ll firewall.12092004.Z
-rwxrwxr-- 1 root dns 12178263 Dec 9 08:00 firewall.12092004.Z
$ id
uid=108(user1) gid=20(users) groups=1000(dns),1001(firewall)
$ chmod 777 firewall.12092004.Z
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-09-2004 02:26 AM
12-09-2004 02:26 AM
SolutionSet /etc/privgroup file. Check perms on it. Should be read to all.
The other option would be use of ACLs. For HFS files system, you would use lsacl and chacl commands. On VxFS file systems you can use getacl and setacl for this. The min. version of VxFS that supports ACL is version 4
Anil
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-09-2004 02:26 AM
12-09-2004 02:26 AM
Re: can anyone except root and owner change a file's read,write,x privilege?
Only owner or root can change the perimissions of a file.
You can use sudo to grant permission for a user id to change permission for a file owned by another id. say the file is owned by abc and xyz wants to change the permissions of the file, you have to configure sudo to allow xyz to run chmond command as abc. While executing the command xyz will have to use "sudo -u abc chmod perm file_name"
If you don't have sudo, you can download sudo from here,
http://hpux.cs.utah.edu/hppd/hpux/Sysadmin/sudo-1.6.8p1/
Check out the man pages too.
Hope this helps.
Regds