LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   files sharing in linux (https://www.linuxquestions.org/questions/linux-newbie-8/files-sharing-in-linux-858952/)

davishades 01-27-2011 02:08 AM

files sharing in linux
 
hey guys..i have installed fedora 13 succesifully and shared files too that are visible from my windows PCs .my problem is my home directory too is visible from the windows side.they are read only but the m being visible bothers me.how do i have only the shared folder to be visible alone?(ie if i run the linux PC from windows i see only the folder that i have shared)

regards

xeleema 01-27-2011 02:12 AM

Greetingz!

Samba is what runs on a Linux box, and makes shares available to Windows systems, so you'll need to look for (and edit) your smb.conf.

1) First, we find it.
find / -name "smb.conf" -type f 2>/dev/null

2) Then we take a gander at it
grep -v "^#" /path/to/smb.conf | grep .

3) If you see a "[homes]" share (or something with "path = /home"), you remove it.
(Use vim, nano, emacs, or another text editor to comment-out every line of that share).

4) Then you restart the Samba service.
service smb restart

NOTE: Always make a quick copy of a file before you start editing it!
(cp -p /path/to/smb.conf /path/to/smb.conf.backup)


All times are GMT -5. The time now is 01:50 PM.