LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 09-09-2005, 09:23 PM   #1
elliotfuller
Member
 
Registered: Apr 2005
Location: San Francisco, CA
Distribution: Ubuntu, Debian
Posts: 83

Rep: Reputation: 15
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?
 
Old 09-10-2005, 06:40 AM   #2
Gibsonist
Member
 
Registered: Mar 2004
Location: Meersburg (GER)
Distribution: Cygwin,RH 7.2 7.3, SuSe 6.4 8.2 9.1,TinyLinux, Debian Sarge, Knoppix 3.*, Knoppicilin, Knoppix STD
Posts: 191

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


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
5 PC's and a server how do I get the PC's to access stuff on the server TheHammer Linux - Networking 9 05-07-2007 11:05 PM
Can't access samba server from windows machine hellblade Linux - Networking 2 09-07-2004 11:15 AM
Windows XP access to Samba Server Jack11 Linux - Networking 2 06-25-2004 12:09 PM
Cannot access Samba server from Windows digiplaya Linux - Networking 7 12-29-2003 12:32 AM
setting up Samba so i can access a dir from my other Windows PC's andara Linux - Newbie 3 11-21-2003 12:39 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 04:59 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration