Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 10-25-2009, 04:09 PM   #1
LQ Newbie
Registered: May 2009
Posts: 15

Rep: Reputation: 0
plz explain about chown..


today i tried to install samba file server..
emm..that work thanks for the tutorial..

but i not understand about commands chown,nobody,nogroup,means...?

the commands is

sudo chown nobody.nogroup /home/sambaLab/share<----


Last edited by loba09; 10-25-2009 at 04:16 PM. Reason: weong spelling
Old 10-25-2009, 04:29 PM   #2
Senior Member
Registered: Sep 2005
Location: France
Distribution: approximately NixOS (
Posts: 1,900

Rep: Reputation: 68
Each file in Unix-like systems is supposed to be owned by one of the users; it is also supposed to be ascribed to some user group containing owner. The owner has special rights like changing file access permissions.

chown command allowsto change file owner and group.

Nobody and nogroup are the virtual user and user group supposed to have very little rights in some modern Unix-like systems, including most GNU/Linux distributions. So samba server runs some code under this account to maximize hassle for any intruder. But as it still needs access to some files, the files are chown'ed to nobody.
Old 10-25-2009, 04:32 PM   #3
LQ Veteran
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2389Reputation: 2389Reputation: 2389Reputation: 2389Reputation: 2389Reputation: 2389Reputation: 2389Reputation: 2389Reputation: 2389Reputation: 2389Reputation: 2389

The chown command changes the owner of a file or directory.

There is a special way of changing both owner (chown's command primary function) and group: nobody.nogroup (or better nobody:nogroup). The owner is before the . or :, the group after.

This command: chown nobody.nogroup /home/sambaLab/share changes the owner and group of share (probably a directory, but it could also be a file) to owner nobody and group nogroup. The part in front of share (/home/sambaLab/) tells chown where share is located.

Hope this clears things up a bit.

Last edited by druuna; 10-26-2009 at 06:20 AM.
Old 10-25-2009, 05:12 PM   #4
LQ Newbie
Registered: May 2009
Posts: 15

Original Poster
Rep: Reputation: 0
thank you so much..druuna n raskin


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 Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
acer fancontrol plz explain majingohan99 Linux - Laptop and Netbook 30 01-22-2009 01:40 PM
Plz explain Suspend to Disk and Suspend to Ram pkhera_2001 Linux - Newbie 2 02-18-2008 07:23 AM
explain me this c code plz alaios Programming 1 06-03-2005 05:32 AM
explain this little script plz nukeu666 Linux - Newbie 4 08-18-2004 12:52 AM
can someone explain this error plz? santasballz Linux - Newbie 5 02-10-2004 01:18 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 03:44 PM.

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