Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Change ownership & group being non root user

Status
Not open for further replies.

vivek1712

Technical User
Dec 17, 2002
47
0
0
IN
How to change ownership & group of a directory or a file being non root user ?

Thanks in advance

Regrds,
viv
 
Being non-root user, you can chgrp a file to any group you belong to, but you can't chown a file.

from the man page:
Only the root user can change the owner of a file. You can change the group of a file only if you are a root
user or if you own the file. If you own the file but are not a root user, you can change the group only to a
group of which you are a member.


I suggest sudo.



HTH,

p5wizard
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top