Samba
hello i just configured samba and started the smbd, and nmbd service but for some reason when i go \\servername it brings up a username and password box none of my passwords or usernames work. any ideas? here is my samba file
[global] workgroup = MEDDATA server string = Samba Server printcap name = /etc/printcap load printers = yes printing = cups log file = /var/log/samba/%m.log max log size = 10000 security = user encrypt passwords = yes security = DOMAIN smb passwd file = /etc/samba/smbpasswd unix password sync = Yes passwd program = /usr/bin/passwd %u pam password change = yes obey pam restrictions = yes socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192 remote announce = 1.1.0.255 local master = no dns proxy = no [homes] comment = Home Directories browseable = no writeable = yes valid users = %S create mode = 0664 directory mode = 0775 [jhayes] comment = Test DIrectory path = /home/jhayes Browseable = yes writeable = yes guest ok = yes valid users = jhayes root create mode = 0664 directory mode = 0775 [public] path = /home/public comment = Test DIrectory Browseable = yes writeable = yes valid users = jhayes create mode = 0664 directory mode = 0775 # If you want users samba doesn't recognize to be mapped to a guest user ; map to guest = bad user # Un-comment the following and create the netlogon directory for Domain Logons ; [netlogon] ; comment = Network Logon Service ; path = /usr/local/samba/lib/netlogon ; guest ok = yes ; writable = no ; share modes = no # Un-comment the following to provide a specific roving profile share # the default is to use the user's home directory ;[Profiles] ; path = /usr/local/samba/profiles ; browseable = no ; guest ok = yes # NOTE: If you have a BSD-style print system there is no need to # specifically define each individual printer [printers] comment = All Printers path = /var/spool/samba browseable = no # Set public = yes to allow user 'guest account' to print printable = yes # This one is useful for people to share files ;[tmp] ; comment = Temporary file space ; path = /tmp ; read only = no ; public = yes # A publicly accessible directory, but read only, except for people in # the "staff" group ;[public] ; comment = Public Stuff ; path = /home/samba ; public = yes ; writable = yes ; printable = no ; write list = @staff # Other examples. # # A private printer, usable only by fred. Spool data will be placed in fred's # home directory. Note that fred must have write access to the spool directory, # wherever it is. ;[fredsprn] ; comment = Fred's Printer ; valid users = fred ; path = /home/fred ; printer = freds_printer ; public = no ; writable = no ; printable = yes # A private directory, usable only by fred. Note that fred requires write # access to the directory. ;[fredsdir] ; comment = Fred's Service ; path = /usr/somewhere/private ; valid users = fred ; public = no ; writable = yes ; printable = no # a service which has a different directory for each machine that connects # this allows you to tailor configurations to incoming machines. You could # also use the %U option to tailor it by user name. # The %m gets replaced with the machine name that is connecting. ;[pchome] ; comment = PC Directories ; path = /usr/local/pc/%m ; public = no ; writable = yes # A publicly accessible directory, read/write to all users. Note that all files # created in the directory by users will be owned by the default user, so # any user with access can delete any other user's files. Obviously this # directory must be writable by the default user. Another user could of course # be specified, in which case all files would be owned by that user instead. ;[public] ; path = /usr/somewhere/else/public ; public = yes ; only guest = yes ; writable = yes ; printable = no # The following two entries demonstrate how to share a directory so that two # users can place files there that will be owned by the specific users. In this # setup, the directory should be writable by both users and should have the # sticky bit set on it to prevent abuse. Obviously this could be extended to # as many users as required. ;[myshare] ; comment = Mary's and Fred's stuff ; path = /usr/somewhere/shared ; valid users = mary fred ; public = no ; writable = yes ; printable = no ; create mask = 0765 ~ ~ ~ |
I may be wrong but as far as I know the setting
Security=USER means that authentication by username and password is required. If you are reasonably secure anyhow, you can set it to Security=SHARE and it wont prompt. |
Just an idea....did you try "root" and the root pw?
|
did you set up samba password using smbpasswd
|
To set up a username and password that will allow you to access SAMBA shares (A.K.A. smb shares), you'll need to issue the following command at a console prompt:
smbpasswd -a username Replace username with the username you wish to use, and hit enter. In this example, you are going to want to use jhayes, as this is listed as one of the allowed users you have in your smb.conf file you supplied us with. You're also going to want to repeat all of this with root too, as root is in your smb.conf. It will ask you to input a password. This will be the password you will use in conjunction with the username you gave. Once you have both those users setup with smbpasswd, you'll be able to browse your smb shares. Remember that anytime you edit your smb.conf to add users, you will have to use smbpasswd again. |
thanks that is what i was missing.
|
All times are GMT -5. The time now is 07:11 PM. |