LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
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.

Notices


Reply
  Search this Thread
Old 12-12-2005, 01:40 PM   #1
surfbass
Member
 
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.

Thanks


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

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

so
chown root /home/notrust

and

chgrp notrust /home/notrust

Hope this helps...

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

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

chown root:notrust /home/notrust will work


THEN

chmod 770 /home/notrust
 
  


Reply



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

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 10:26 PM.

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