[Samba] User managment questions

Glaanieboy

OSNN Veteran Addict
Joined
6 Mar 2002
Messages
2,628
I have just discovered the awesome power of Samba, a program that runs under *nix (in my case FreeBSD), and uses the SMB protocol to enable Windows users to access shares on *nix servers.

My question is if it's possible to just add an user to Samba, without creating an user in the *nix environment? Now the proper procedure is to add an user in the *nix environment first and then add a Samba user. Alternativily it's possible (or so I understand from a Dutch online manual) to enable the SMBserver to let the user/passwords control at the hands of the workstation. But I don't want to use neither option, because that means I create an useraccount, while I only want an user/password for Samba, nothing else. How can I accomplish that?
 

j79zlr

Glaanies script monkey
Political Access
Joined
16 Feb 2003
Messages
2,725
AFAIK you have to create a user first, then a samba user, but you can set the login shell to /sbin/nologin and they will not be able to login as a user on the workstation.
 

Glaanieboy

OSNN Veteran Addict
Joined
6 Mar 2002
Messages
2,628
I've heard of SWAT, but I also read on some random forums (can't remember which) that SWAT has some serious bugs etc. But that may be just an older version.
 

X-Istence

*
Political Access
Joined
5 Dec 2001
Messages
6,498
It does have serious bugs, and should be disabled after your done with it.
 

Xie

- geek -
Joined
29 Sep 2003
Messages
5,274
I messed w/ SWAT and was never able to get it working :( I think "by hand" is probably better way as you'll learn more then using GUI ;) If you do use it though do as X said and make sure to disable it after as it could be a security issue.
 

Reg

eXperienced!
Joined
2 Mar 2002
Messages
639
You could also install Webmin and use it's built in Samba manager.
 

vern

Dominus
Political Access
Joined
2 Mar 2002
Messages
1,572
Ditto for Webmin. I had to configure Samba manually, but after that, I've used Webmin to administer it.
 

ignipotentis

OSNN Addict
Joined
25 Mar 2004
Messages
127
Why don't you just look into windbind. That way your linux box can get some of its account information from a windows network. This seems like the ideal solution for you. You don't have to create a linux user since you can set up PAM to authenicate against a NT Domain or an Active Directory.
 

j79zlr

Glaanies script monkey
Political Access
Joined
16 Feb 2003
Messages
2,725
for some reason, I dont think Glaanie's home network has an AD or NT domain controller :p

Any of those config programs [webmin] present serious security issues if not configured properly.
 

vern

Dominus
Political Access
Joined
2 Mar 2002
Messages
1,572
j79zlr said:
Any of those config programs [webmin] present serious security issues if not configured properly.
Same can be said for just about every popular suite of software. The default install of webmin is fairly secure ... what the admin does after is their own fault.
 

X-Istence

*
Political Access
Joined
5 Dec 2001
Messages
6,498
Uhm, i dont suggest these web based tools, as they all want it to be done their way, discarding the FreeBSD hiararchy ****.
 

Glaanieboy

OSNN Veteran Addict
Joined
6 Mar 2002
Messages
2,628
Since I am a first timer and I want to learn things, rather then pushing a button and let it do it's thing, I'll go for the text-mode, instead of web(min). Thanks anyway for the suggestions.
 

Geffy

OSNN Veteran Addict
Joined
18 Mar 2002
Messages
7,805
best way really cause then when the automatic thinger breaks or doesnt do something the way you want then you can go in and fix it :p
 

ignipotentis

OSNN Addict
Joined
25 Mar 2004
Messages
127
j79zlr said:
for some reason, I dont think Glaanie's home network has an AD or NT domain controller :p
Better yet, Set up SAMBA to emulate a DC, then you can have all of your windows machines log into a domain and again have centralized user management.
 

furthur

OSNN Junior Addict
Joined
8 Jan 2004
Messages
13
no no no this is what your looking for


smbpasswd -a "newusersname" without the " "

- Jeff
 

Members online

No members online now.

Latest profile posts

Electronic Punk wrote on Sazar's profile.
Rest in peace my friend, been trying to find you and finally did in the worst way imaginable.
Terrahertz wrote on Electronic Punk's profile.
Yo fellas!
Electronic Punk wrote on Sazar's profile.
Where are you buddy?
Perris Calderon wrote on Electronic Punk's profile.
Hey EP! All good with me, applying for Microsoft MVP right now, should have done this a while ago.

Notifications don't work, I only found your response by coming back to hunt up some threads, if you want, give me your email address so we can keep in touch easier!
Perris Calderon wrote on Electronic Punk's profile.
EP, glad to see you come back and tidy up...did want to ask a one day favor, I want to enhance my resume , was hoping you could make me administrator for a day, if so, take me right off since I won't be here to do anything, and don't know the slightest about the board, but it would be nice putting "served administrator osnn", if can do, THANKS

Been running around Quora lately, luv it there!

Forum statistics

Threads
61,997
Messages
673,392
Members
5,586
Latest member
caitlinansell