LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   plz explain about chown.. (https://www.linuxquestions.org/questions/linux-newbie-8/plz-explain-about-chown-764389/)

loba09 10-25-2009 04:09 PM

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

raskin 10-25-2009 04:29 PM

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.

druuna 10-25-2009 04:32 PM

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.

loba09 10-25-2009 05:12 PM

thank you so much..druuna n raskin


All times are GMT -5. The time now is 09:08 AM.