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

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 12-02-2004
tonydsam tonydsam is offline
Registered User
  
 

Join Date: May 2004
Posts: 17
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!
  #2 (permalink)  
Old 12-02-2004
zazzybob's Avatar
zazzybob zazzybob is offline Forum Advisor  
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
  #3 (permalink)  
Old 12-02-2004
Perderabo's Avatar
Perderabo Perderabo is offline Forum Staff  
Unix Daemon
  
 

Join Date: Aug 2001
Location: Ashburn, Virginia
Posts: 9,111
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.
  #4 (permalink)  
Old 12-02-2004
tonydsam tonydsam is offline
Registered User
  
 

Join Date: May 2004
Posts: 17
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.
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 05:54 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