- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- Re: Is there a version of chown for Linux for non-...
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
тАО02-09-2010 03:38 AM
тАО02-09-2010 03:38 AM
I know all the business about well-designed use of groups etc, etc, but we have over 15 years of HP-UX legacy set-up to overlay on to new Linux systems and this would be a lot less aggro than me as the root user having to modify all the current ownerships and permissions.
Solved! Go to Solution.
- Tags:
- chown
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-09-2010 05:21 AM
тАО02-09-2010 05:21 AM
Re: Is there a version of chown for Linux for non-root users?
One version of chown
It works for all users.
Regular users can not execute chown on things they do not own. That is the way unix permissions work.
The command doesn't work any differently on HP-UX.
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
тАО02-09-2010 05:52 AM
тАО02-09-2010 05:52 AM
Re: Is there a version of chown for Linux for non-root users?
This avoid security problems that could be caused by using the chown command, for example, creating a SUID program with a regular user and chown to root is a great security risk.
I think it's time to change your security model.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-09-2010 07:16 AM
тАО02-09-2010 07:16 AM
SolutionWhat I finally did to work around it was to change the permissions on /bin/chown so that the setuid is set.
My chown now looks like:
-rwsr-xr-x 1 root root 43472 May 3 2007 /bin/chown*
The normal chown permssions are:
-rwxr-xr-x 1 root root 43472 May 3 2007 /bin/chown*
I am also perfectly aware that this is a security hole. At this point in time, with the limited user access on this one system, I can live with it.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-09-2010 07:17 AM
тАО02-09-2010 07:17 AM
Re: Is there a version of chown for Linux for non-root users?
The command is different between HP-UX and RHEL - a non-root RHEL user cannot change ownership of files they own; transcripts below.
$ uname
Linux
$ who am i
13784sp pts/3 Feb 9 10:50 (greebo)
$ ll
total 0
-rw-r--r-- 1 13784sp logica 0 Feb 9 15:05 blahh
$ chown root blahh
chown: changing ownership of `blahh': Operation not permitted
--------------------------------------------
$ uname
HP-UX
$ who am i
13784sp pts/tb Feb 9 15:02
$ ll
total 0
-rw-rw-rw- 1 13784sp logica 0 Feb 9 15:02 blahh
$ chown root blahh
$ ll
total 0
-rw-rw-rw- 1 root logica 0 Feb 9 15:02 blahh
$
I suppose I could just nfs mount everything from the Linux boxes and let the users change the permissions on a remaining HP-UX system. Or they can copy them to their PC as the account which owns the file and then copy back using the intended destination account.
Looks like I'll spend the next fortnight changing permissions and ownerships.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-09-2010 07:24 AM
тАО02-09-2010 07:24 AM
Re: Is there a version of chown for Linux for non-root users?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-09-2010 07:26 AM
тАО02-09-2010 07:26 AM
Re: Is there a version of chown for Linux for non-root users?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-09-2010 10:55 AM
тАО02-09-2010 10:55 AM
Re: Is there a version of chown for Linux for non-root users?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-09-2010 10:21 PM
тАО02-09-2010 10:21 PM
Re: Is there a version of chown for Linux for non-root users?
Goran
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-10-2010 02:30 AM
тАО02-10-2010 02:30 AM