Samba File/Folder sharing question
Hi,
I am running OpenSuse 11. It runs Apache webserver and Samba for filesharing. I am also running webmin. Everything works 100%. I have 2 shared folders that can be accessed by everyone. My question is how can I log in to the shared folder from a windows machine when I set the permissions for only a certain user to log in. My system hostname is Linux.site and my user is henk. I am not sure how I need to log in that way. Should the username be Linux.site\henk ... I have a bit of difficulty with this. I am quite new to Linux though. Many thanks Henk |
You will need to post the Global section of smb.conf and the share definition. If you have "map bad user = guest" and "guest ok = yes" in the share definition, then it doesn't matter what credentials you enter.
The Linux equivalent of the window's user "guest" is the Linux user "nobody". A globally writable share should be created owned by nobody, with rwx permissions, and the sticky bit should be set. Code:
sudo mkdir /srv/samba/sharename If you have a user on Linux, you use the `smbpasswd' program to create a samba user with the same username and passwd. This assumes that your server uses the 'smbpasswd' file for storing credentials. There are other methods, such as using a different backend, and using Samba as a domain controller. But it seems you are using pretty much the defaults, and I assumed you aren't running a domain controller (which XP home can't join anyway). |
All times are GMT -5. The time now is 03:33 PM. |