Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - General
User Name
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.


  Search this Thread
Old 12-12-2005, 01:40 PM   #1
Registered: Dec 2004
Posts: 33

Rep: Reputation: 15
Changing owner and group of file

I don't really understand the syntax of 'chown' even after reading the man pages. It says 'chown [OPTION..OWNER[:[GROUP]] FILE'
I tried 'chown 770 root:notrust /home/notrust' and I get the following error: 'chown: cannot access 'root:notrust': no such file or directory.'

Could I get some help here? If you couldn't tell, I wanted root to own the 'notrust' dir, but also the group 'notrust' so other users could not access it.


Old 12-12-2005, 01:59 PM   #2
LQ Newbie
Registered: Dec 2005
Distribution: Ubuntu 6.06 (Dapper)
Posts: 18

Rep: Reputation: 0
chown "new owner" "of what"...

chown root /home/notrust


chgrp notrust /home/notrust

Hope this helps...

Old 12-12-2005, 02:25 PM   #3
Registered: Dec 2004
Posts: 110

Rep: Reputation: 16
Actually you're confusing chown and chmod.

chown root:notrust /home/notrust will work


chmod 770 /home/notrust


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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

Similar Threads
Thread Thread Starter Forum Replies Last Post
folder owner/group weird curos Slackware - Installation 1 07-18-2005 07:13 AM
group owner etc MI3GTO Mandriva 3 02-27-2005 08:26 PM
File owner and File group locked - root deiphage Linux - Hardware 5 02-05-2005 01:30 PM
sudo changes the owner and the group of some my files and now I can't enter in X Ali79 Linux - Software 5 12-10-2004 01:01 PM
Group as owner instead of a user dtournas Linux - General 1 09-11-2003 10:13 AM > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 05:53 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration