Discussion Locked

samba

0 helpful
7 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.
I have Linux Slackware 8 server with samba installed and running. I want 4 of my PCs which are under windows 98 to be able to access the specific folder at the server with a username and password. How to configure my samba server for this task.

7 replies

by mckaytech

There are three pieces to this. The first is to get the password scheme correct. - you'll need a statement in your smb.conf that says 'encrypt passwords = yes'.

Then you'll need to create a Samba user id and password for each user. You can either do this manually in the smbpasswd file or with a utility like smbadduser.

Finally, you'll need to create the directory with appropriate permissions, identify the share in the smb.conf and assign the users to it. For the permissions, you can either use groups or you can just put a line in the smb.conf that says 'valid users = user1 user2'.

If you would like a sample smb.conf to work from, please write to me off-the-list and I'll send you one that I use for a Samba server in an NT/Win98 environment.

paul

by cybergod

your smb.conf does not helped me. I need an exmaple how windows users can access a share folder on Linux but WITH PASSWORD, I'v tryed to do it but it want accept the password.

by braveh4rt

You can do it by setting up in smb.conf and make the directory home accessable with samba.
make sure the line like this is there
[home]
browseable=yes

this will make the user login to samba with windows will see their home directory.

if u want to make global share just add this
[global]
path=\usr\local\sharedir
guest = yes
browsable=yes

this will make all user see this directory.
And 1 point u should know, if u want samba aunthicate the user permisison then u must hack the windows registry to make their password encryption disabled cause samba and win encryption is different.

Try to read the samba man with
user@www#man samba

I got my pc running samba and share folder with windows box.

may help u

Tcs

by mckaytech

I'm sorry the sample smb.conf didn't help. What are the directory and file permissions on the Linux file structure? Does the output from 'ls -l ' show correct permissions and ownership on the directory/files you're trying to share?

paul

This discussion is closed to new replies.