Chown problem


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers Chown problem
# 1  
Old 12-02-2004
Network 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  
Old 12-02-2004
What is the output of "ls -ld norfolk"? Are you the user specified in the third column of the output?

Cheers
ZB
# 3  
Old 12-02-2004
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  
Old 12-02-2004
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.
 
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Solaris

chown

Hello My oracledatabase creats some xmlfiles. this files has the owner hugo. now I've a script (how runs als hugo2) and this script will insert this XMLFile into the database. But that doesn't work, because the owner of the files is wrong, and hugo has not the rights to insert this files into... (3 Replies)
Discussion started by: Street
3 Replies

2. AIX

Trouble in chown

I'm a owner of directories or files why I can't deliver the ownership of them up to other users? (1 Reply)
Discussion started by: kang
1 Replies

3. Solaris

NFS Share - chown problem

Hi all, I had share the server Gemini /u10 to the server Centaurus. /etc/dfs/dfstab share -F nfs -o root=centaurus /u10 My problem is: in the server Gemini the the owner for /U10 is oracle:dba but when in the server Centaurus, I am not able to change the owner become oracle:dba, it show... (8 Replies)
Discussion started by: SmartAntz
8 Replies

4. Shell Programming and Scripting

cp, chown, untar

hello i want shell script. i have a source.txt /home/user409/public_html/test/ /home/user09876/public_html/xdsss/ /home/user9765/public_html/320xxx/ . . . maybe 1000 lines i want . 1.read a source.txt 2.untar special.tar.gz into these directory in source.txt 3.i want to... (14 Replies)
Discussion started by: topic32428285
14 Replies

5. UNIX for Dummies Questions & Answers

chown

is there a difference in chown on a file or a directory? how do i chown a directory and all the contents? (2 Replies)
Discussion started by: BG_JrAdmin
2 Replies

6. UNIX for Dummies Questions & Answers

reg chown

hi i wrote a script to run 'C' executable which will create a new file, after that util is completed, i have to change the file ownership to some other user. for that i used "chown" for changing the file permission in Korn script :confused:but it is throwing error is "operation... (2 Replies)
Discussion started by: ilayans
2 Replies

7. UNIX for Dummies Questions & Answers

Chgrp and Chown ???

Hi Can anybody please let me know the usage of Chgrp command with an example??? Thanks (1 Reply)
Discussion started by: skyineyes
1 Replies

8. AIX

chown

hello chown not change ownership before: 205:system ~kuku chown kuku:system ~kuku after no change 205:system ~kuku aix box can someone help me? ariec (2 Replies)
Discussion started by: ariec
2 Replies

9. UNIX for Dummies Questions & Answers

chown and permissions

how i could give to user permission(delete,execute and so on) and ownership to files? Thanks (1 Reply)
Discussion started by: ithost
1 Replies

10. UNIX for Dummies Questions & Answers

chown and NIS

I have a box that people are using to ssh to our customer sites. Everyone uses an NIS account that I have created for them. I also create home directories for these users as well on this box. My question is can use a command, like chown, to change ownership of the directories I create to the... (2 Replies)
Discussion started by: Jody
2 Replies
Login or Register to Ask a Question