Linux - NetworkingThis forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
I wanted to ask if it's possible to share folders outside my home folder.
I have another partition called /mnt/D where I store a folder with music and I wanted to share it but I don't know how.
Yes, I use Samba because my girlfriend's pc uses Windows 2000 (I'm trying to convert her to Linux, hehe). I also use Suse 9.1 as you and I added the folders I want to share with yast. And when I try to share a folder outside my home folder it does not allow me to do that. And to setup that I need root password, so I'm already root, isn't it?
Entering the root password gives you root privilages, it doesn't necessarily set your username as root.
But if YaST won't let you do it, then it probably just won't let you for some reason. you might try editing smb.conf by hand to add a new share. Alternatively, change the mount point of /mnt/D in /etc/fstab to put it under your home directory (you may need to add an empty directory to use as the mountpoint).
Edit: Or run
Code:
mount --bind /mnt/D /home/user/mountpoint/
(you will need Linux 2.4 or above for this to work). This will mount the filesystem in two places at once.
Originally posted by kcJUGGALO How can I undo the "mount --bind /mnt/D /home/user/mountpoint/" so that its not there anymore... thanks
Same as any other mountpoint:
Code:
umount /home/user/mountpoint
As with any mountpoint, make sure that no-one is CDed into that directory, and no process has a file/directory/pipe handle open under /home/user/mountpoint, or it won't let you unmount it. (You can't unmount a filesystem that's in use)
Thats what i'm getting with the umount command... and i don't see any config file that says its binded with the original mnt point which is /mnt/win_c2
What does it say for this mount-point in /proc/mounts?
I've just tried binding a mount-point on my system, and it doesn't seem to indicate that it's bound in any way to the original (I think it just creates a second mount for the device, so no such binding really exists). But I can unmount it with umount, with or without the trailing slash.
You may need to specify the full path, or it will assume that it's relative to /, and you obviously need to type the directory name correctly (including capitalisation).
Weird... but I got rid of it by simply deleting the folder in the /home dir and the files are still on the original /mnt drive so all is good... thanks very much for the replies though and the --bind command thats handy.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.