LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   Ubuntu Server with Samba, Windows PC's cant access server! (https://www.linuxquestions.org/questions/linux-networking-3/ubuntu-server-with-samba-windows-pcs-cant-access-server-361931/)

elliotfuller 09-09-2005 09:23 PM

Ubuntu Server with Samba, Windows PC's cant access server!
 
I have created a RAID 1 array using Ubuntu Linux. I installed a graphical base system (by default) opposed to entering 'server' at the install disc boot prompt. Both my arrays have 160 GB hard drives and are correctly syncing:

Code:

# cat /proc/mdstat
Quote:

Personalities : [raid1]
md0 : active raid1 hdb1[0] hda1[1]
159332544 blocks [2/2] [UU]

unused devices: <none>
I then:

Code:

# nmbd
#smbd

I then created my users:

Code:

# adduser bob
I then ran:

Code:

# smbpasswd
I then edited /etc/samba/smb.conf:

(Comments removed for clarity, "Network Data" is the folder I would like to share on the server, as well as the user's respective home's)

Quote:

#

#Global Settings

[global]
workgroup = NETWORK
server string = Network Data
; wins support = no
; wins server = w.x.y.z
; name resolve order = lmhosts host wins bcast

#### Debugging/Accounting ####

log file = /var/log/samba/log.%m
max log size = 1000
; syslog only = no
syslog = 0
panic action = /usr/share/samba/panic-action %d
####### Authentication #######

security = user
encrypt passwords = true
passdb backend = tdbsam guest
obey pam restrictions = yes
; guest account = nobody
invalid users = root
; unix password sync = no
passwd program = /usr/bin/passwd %u
passwd chat = *Enter\snew\sUNIX\spassword:* %n\n *Retype\snew\sUNIX\spassword:* %n\n .
; pam password change = no

########## Printing ##########

; load printers = yes
; printing = bsd
; printcap name = /etc/printcap
; printing = cups
; printcap name = cups
; printer admin = @ntadmin

######## File sharing ########

# Name mangling options
; preserve case = yes
; short preserve case = yes
wins support = no

[Network Data]
public = no
comment = Data
path = /home/network
writable = yes
printable = no
valid users = billy bob bart bud
create mask = 0775
directory mask = 0775

############ Misc ############

socket options = TCP_NODELAY
; message command = /bin/sh -c '/usr/bin/linpopup "%f" "%m" %s; rm %s' &
; domain master = auto
; idmap uid = 10000-20000
; idmap gid = 10000-20000
; template shell = /bin/bash

#Share Definitions
available = yes
browseable = no
public = yes
[homes]
comment = Home Directories
browseable = yes
writable = yes
create mask = 0775
directory mask = 0775
[netlogon]
; comment = Network Logon Service
; path = /home/samba/netlogon
; guest ok = yes
; writable = no
; share modes = no
[printers]
comment = All Printers
browseable = no
path = /tmp
printable = yes
public = no
writable = no
create mode = 0700
[print$]
comment = Printer Drivers
path = /var/lib/samba/printers
browseable = yes
read only = yes
guest ok = no
; write list = root, @ntadmin
[cdrom]
; comment = Samba server's CD-ROM
; writable = no
; locking = no
; path = /cdrom
; public = yes
; preexec = /bin/mount /cdrom
; postexec = /bin/umount /cdrom
After editing smb.conf I then restarted samba with:
Code:

sudo /etc/init.d/samba restart
My windows clients can see the server (Samba is running) but no prompt is given for password, I'm just not allowed to use 'this resource'.

Any suggestions?

Gibsonist 09-10-2005 06:40 AM

Try to create a user with username and password == to the one on the windows box
and see if that works


All times are GMT -5. The time now is 09:54 PM.