View previous topic :: View next topic |
Author |
Message |
Pegasus n00b


Joined: 19 Jun 2002 Posts: 3
|
Posted: Wed Jun 19, 2002 12:16 pm Post subject: samba: one password for different win98 machines |
|
|
Hi,
I want to give some win98 machines access to a directory on my linux server. But because most win98-users don't know there username, i want to use one username. Is it possible to force samba to use a special account so that the win98-users dont have to enter a username, only a password? (like the 'win98-way-of-sharing-a-directory')
I've read something about "user=" ? |
|
Back to top |
|
 |
taskara Advocate

Joined: 10 Apr 2002 Posts: 3763 Location: Australia
|
Posted: Wed Jun 19, 2002 2:20 pm Post subject: |
|
|
you can make a share that doesn't even require a password.
there is an example in the smb.conf file (public or tmp or something)
u can also use:
guest ok = yes
and there's a security section
security=user
change that to
security=share
give it a go. |
|
Back to top |
|
 |
Pegasus n00b


Joined: 19 Jun 2002 Posts: 3
|
Posted: Wed Jun 19, 2002 5:46 pm Post subject: |
|
|
thank you,
but i need some security: There are over 200 machines on this network, and i only want a couple of them to be able to access my computer. i could select them using their ip's but we"re using DHCP (so i'd rather not use this method). |
|
Back to top |
|
 |
taskara Advocate

Joined: 10 Apr 2002 Posts: 3763 Location: Australia
|
Posted: Thu Jun 20, 2002 1:03 am Post subject: |
|
|
why don't you use samba to create a domain server, and then log your win98 machines onto the domain ?
you can add users to your samba file by using
smbpasswd -a {username} (make sure they are a local linux user too)
then in your samba conf file use
security = user
users = {usernames}
I have a win98 machine here.. I'll check it out and let you know..
you should experiment and see what works for you |
|
Back to top |
|
 |
delta407 Bodhisattva


Joined: 23 Apr 2002 Posts: 2876 Location: Chicago, IL
|
Posted: Thu Jun 20, 2002 1:21 am Post subject: |
|
|
taskara wrote: | why don't you use samba to create a domain server, and then log your win98 machines onto the domain ? |
That's unnecessarily complex and may not be possible due to administrative policy on his large network.
Add an account on your Gentoo box for these Win98 machines, set the password (using passwd) to what you want, and add the line "user = [mynewaccount]" to that Samba share. (You may have to be in "security = share", as well; I'm not sure.) According to "man smb.conf", it should compare the supplied password with the passwords of the account(s) specified, and upon matching give the remote user the same filesystem permissions as the local user would have. |
|
Back to top |
|
 |
Pegasus n00b


Joined: 19 Jun 2002 Posts: 3
|
Posted: Thu Jun 20, 2002 9:35 am Post subject: |
|
|
thank you,
that's exactly what i needed. |
|
Back to top |
|
 |
|