1830898 Members
3034 Online
110017 Solutions
New Discussion

Password in samba

 
Abdullah Abu Diyab
Occasional Contributor

Password in samba

Dear All,

I have an NT sevrver and when the user try to connect to the HP-UNIX server where ther is a samba it is ask the user for the user name and password.
How I can set the smb.conf file so it will not ask for the username and password ?

Regards
7 REPLIES 7
Rita C Workman
Honored Contributor

Re: Password in samba

It's been awhile since we did this but seems to me once we got Samba working..to set it so the end user just 'went in' we did something like this:

* Keep 'smbnull' in your /etc/passwd file
* Remove from smbpassword file the 'guest' account & 'smbnull' account.
* In username.map - remove the xtra smbnull
* In smb.conf file map to guest=bad user
* Stop Samba and restart Samba

Depending on your version of Windows ( and the PC mfg ) you may get an initial login prompt menu when your end user makes their first connection. If you do, just type user=guest password=guest and hit enter. This seemed to be a Windows thing-not Samba.

Hope my memory is solid on this...like I said it's been a little while.
Rgrds,
Rita
Steven E. Protter
Exalted Contributor

Re: Password in samba

Rita's memory is fine, right out of the manual I think.

You do realize there are security implications of the setup you are asking about?

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Rita C Workman
Honored Contributor

Re: Password in samba

Hey Thanks Steven....not the manual, just my old notes.

Makes me feel so much better, cause yesterday my memory failed and I 'sort of' forgot to do something for my new boss.....ouch !!

...security breach..yeah..but since our users had already jumped through a couple security passwords...I figured to get to this, I'd cut them a break...

Rgrds,
Rita
Darren Prior
Honored Contributor

Re: Password in samba

Hi,

I'm not sure if you want to have no passwords (ie guest level access) which has been discussed above, or whether you want to have authentication performed without prompting the user.

If you setup the smb.conf to use server level security you can then authenticate off the NT domain controller, without prompting the user for details. There's a section on this in the Using Samba book by O'Reilly.

regards,

Darren.
Calm down. It's only ones and zeros...
Geoff Wild
Honored Contributor

Re: Password in samba

Configure your samba server to use NT BDC's for authentication:

# Global parameters
[global]
workgroup = YOURNTDOMAINNAME
netbios name = YOURSERVERNAME
netbios aliases = ALIASFORYOURSERVER
security = SERVER
encrypt passwords = Yes
password server = NTBDC1, NTBDC2, NTBDC3
username map = /etc/opt/samba/username.map
log level = 1
syslog = 0
log file = /var/opt/samba/log.%m
max log size = 10000
keepalive = 0
load printers = No
show add printer wizard = No
preferred master = No
domain master = No
wins server = ip.of.wins.server
valid users = user1, user2, etc
read only = No
create mask = 0664
force create mode = 0664
directory mask = 0775
short preserve case = No
dos filetime resolution = Yes


RGds...Geoff
Proverbs 3:5,6 Trust in the Lord with all your heart and lean not on your own understanding; in all your ways acknowledge him, and he will make all your paths straight.
Abdullah Abu Diyab
Occasional Contributor

Re: Password in samba

Dear All,

I do not what I have to do !!
here is my smb.conf
************************************
workgroup = DOMAIN_NAME
server string = Samba Server
guest ok = yes
username = testuser
log file = /var/opt/samba/log.%m
max log size = 1000
security = domain
password server = *
encrypt passwords = yes
socket options = TCP_NODELAY
local master = no
read only = no
preserve case = yes
short preserve case = no
dos filetime resolution = yes
syslog = 0
comment = Home Directories
browseable = no
path = /tmp
**************************************
Abdullah Abu Diyab
Occasional Contributor

Re: Password in samba

Dear All,

Sorry here is my smbd.conf file :
[global]
encrypt passwords = yes
guest account = smbguest
hide unreadable = yes
hide dot files= yes
log level = 1
log file = /var/log/samba/%m.log
netbios name = WaleedSambaTest-ltams2
security = user
server string = "This is just a test"
socket options = TCP_NODELAY IPTOS_LOWDELAY SO_RCVBUF=8192 SO_SNDBUF=8192
time server = yes
wins support = yes
workgroup = stc


[xml]
path = /xml_ora
comment = XML's home directory
writeable = yes
valid users = xml_user ***************************************
when I try to connect to the UNIX from my NT it is ask me for the username and passwd ??