LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices


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

Rep: Reputation: 0
plz explain about chown..


hi..

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<----

thanks

Last edited by loba09; 10-25-2009 at 05:16 PM. Reason: weong spelling
 
Old 10-25-2009, 05:29 PM   #2
raskin
Senior Member
 
Registered: Sep 2005
Location: Russia
Distribution: NixOS (http://nixos.org)
Posts: 1,899

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, 05:32 PM   #3
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2387Reputation: 2387Reputation: 2387Reputation: 2387Reputation: 2387Reputation: 2387Reputation: 2387Reputation: 2387Reputation: 2387Reputation: 2387Reputation: 2387
Hi,

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 07:20 AM.
 
Old 10-25-2009, 06:12 PM   #4
loba09
LQ Newbie
 
Registered: May 2009
Posts: 15

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


Reply


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 02:40 PM
Plz explain Suspend to Disk and Suspend to Ram pkhera_2001 Linux - Newbie 2 02-18-2008 08:23 AM
explain me this c code plz alaios Programming 1 06-03-2005 06:32 AM
explain this little script plz nukeu666 Linux - Newbie 4 08-18-2004 01:52 AM
can someone explain this error plz? santasballz Linux - Newbie 5 02-10-2004 02:18 PM


All times are GMT -5. The time now is 11:38 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration