The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
.
google unix.com



UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !!

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
change multiple ownership invinzin21 Shell Programming and Scripting 1 01-17-2008 10:51 AM
change owner panknil Shell Programming and Scripting 7 11-06-2007 05:07 PM
User should not be allowed to change passwd brookingsd UNIX for Dummies Questions & Answers 3 01-23-2006 12:00 PM
Change owner venkyA UNIX for Dummies Questions & Answers 16 04-29-2005 04:50 PM
How do I change ownership of a directory and all of it's files. mborin UNIX for Dummies Questions & Answers 1 02-25-2001 06:24 AM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 09-24-2007
MSHETTY MSHETTY is offline
Registered User
  
 

Join Date: Sep 2007
Posts: 3
I am the owner,yet not allowed the change the ownership

sm860 IS the owner of the files below,but yet sm860 cannot change the ownership to bpt3a1.Please let me know why ?

See below for details
---

sm860@unixs741_DEV:/usr/gdp/home/ftp/bpt3a1/incoming/ahdb/T5/pcasav/daily $ ls -l pcasav*
-rw-r--r-- 1 sm860 gdpintegrators 821 Sep 21 16:15 pcasavdaily.dat
-rw-r--r-- 1 sm860 gdpintegrators 39 Sep 21 16:15 pcasavdaily.end
sm860@unixs741_DEV:/usr/gdp/home/ftp/bpt3a1/incoming/ahdb/T5/pcasav/daily $ whoami
sm860
sm860@unixs741_DEV:/usr/gdp/home/ftp/bpt3a1/incoming/ahdb/T5/pcasav/daily $ chown bpt3a1 pcasav*
chown: pcasavdaily.dat: Not owner
chown: pcasavdaily.end: Not owner
sm860@unixs741_DEV:/usr/gdp/home/ftp/bpt3a1/incoming/ahdb/T5/pcasav/daily $

thx
m
  #2 (permalink)  
Old 09-24-2007
SteveO SteveO is offline
Registered User
  
 

Join Date: Mar 2005
Posts: 2
changing ownership?

what are the permissions on the parent directory? I believe commands like "chown" update the directory inode.

Also, acl's could be used, what O/S? or File-system are you using
  #3 (permalink)  
Old 09-24-2007
Neo's Avatar
Neo Neo is offline Forum Staff  
Administrator
  
 

Join Date: Sep 2000
Location: Asia Pacific
Posts: 6,668
Quote:
Originally Posted by MSHETTY View Post
sm860 IS the owner of the files below,but yet sm860 cannot change the ownership to bpt3a1.Please let me know why ?
Because it would be a security violation for the userID, sm860, to change the ownership of a file to another user, like bpt3a1.
  #4 (permalink)  
Old 09-24-2007
MSHETTY MSHETTY is offline
Registered User
  
 

Join Date: Sep 2007
Posts: 3
makes sense.I guess it is a secutity violation.


sm860 was able to change permission so that bpt3a1 could mv and read the file.


Thanks again for all the replies

Note for those interested, the folder rights in which the files were sitting had drwx for all.

thx
m
  #5 (permalink)  
Old 09-24-2007
Neo's Avatar
Neo Neo is offline Forum Staff  
Administrator
  
 

Join Date: Sep 2000
Location: Asia Pacific
Posts: 6,668
Thanks for the update.

Yes, if terrible_person owned a file with very nasty stuff, for example. It would be a security violation for terrible_person to change the ownership of their file to innocent_victim.

There are other reasons as well, this is just one example.
  #6 (permalink)  
Old 09-25-2007
kapilraj kapilraj is offline
Registered User
  
 

Join Date: Dec 2006
Location: Maryland
Posts: 162
My crazy mind would write a setuid program and then change the ownership to root and will be able to run it as root user than me

It would be a serious security violation if it did work.

Kaps
  #7 (permalink)  
Old 09-25-2007
Neo's Avatar
Neo Neo is offline Forum Staff  
Administrator
  
 

Join Date: Sep 2000
Location: Asia Pacific
Posts: 6,668
Quote:
Originally Posted by kapilraj View Post
My crazy mind would write a setuid program and then change the ownership to root and will be able to run it as root user than me

It would be a serious security violation if it did work.

Kaps
There is no Unix-like OS that I know of that would permit a file with setuid set to change the owner to root from a non-privileged user.

These are basic security controls that have been in place for as long as I can remember.
Closed Thread

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 11:20 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0