The UNIX and Linux Forums  

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
Chgrp and Chown ??? skyineyes UNIX for Dummies Questions & Answers 1 05-28-2008 03:45 AM
chown ariec AIX 2 08-14-2007 01:24 PM
chown BG_JrAdmin UNIX for Dummies Questions & Answers 1 05-31-2005 10:47 AM
chown and permissions ithost UNIX for Dummies Questions & Answers 1 07-03-2003 05:18 AM
chown and NIS Jody UNIX for Dummies Questions & Answers 2 07-01-2003 11:57 AM

Reply
 
Submit Tools LinkBack Thread Tools Search this Thread Display Modes
  #1  
Old 12-02-2004
Registered User
 

Join Date: May 2004
Posts: 14
Angry Chown problem

I am trying to change ownership of a file that I own by using the following command:

chown norfoklm norfolk


norfoklm is the user I am trying to change it to and norfolk is the name of the directory

The error I keep getting is:

chown: norfolk: Not owner

This is on a SUN unix box if that makes any difference.

HELP!
Reply With Quote
Forum Sponsor
  #2  
Old 12-02-2004
zazzybob's Avatar
Registered Geek
 

Join Date: Dec 2003
Location: Melbourne, Australia
Posts: 2,100
What is the output of "ls -ld norfolk"? Are you the user specified in the third column of the output?

Cheers
ZB
Reply With Quote
  #3  
Old 12-02-2004
Perderabo's Avatar
Unix Daemon
 

Join Date: Aug 2001
Location: Washington DC Area
Posts: 8,653
Re: Chown problem

Quote:
Originally posted by tonydsam
This is on a SUN unix box if that makes any difference.

It's always a good idea to mention the OS.

Like many versions of Unix, SunOS prevents non-root users from giving away files. If users can give away files, quotas are defeated.

From the SunOS chown(2) man page:
Quote:
When {_POSIX_CHOWN_RESTRICTED} is in effect (the default behavior), the chown(), lchown(), and fchown() functions, for users other than super-user, prevent the owner of the file from changing the owner ID of the file and restrict the change of the group of the file to the list of supplementary group IDs.
This can be changed system-wide by reconfiguring the kernel. See the chown(2) man page for details.
Reply With Quote
  #4  
Old 12-02-2004
Registered User
 

Join Date: May 2004
Posts: 14
Thanks everyone. I have got around the problem by changing the directory permissions so that any users can create files and then I have logged in as the other user and created the files. Thanks for the info though.
Reply With Quote
Google The UNIX and Linux Forums
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes




All times are GMT -7. The time now is 02:54 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008. All Rights Reserved.Ad Management by RedTyger Visit The Complex Event Processing Blog

Content Relevant URLs by vBSEO 3.2.0