LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
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 10-24-2009, 08:22 PM   #1
vigdavies
LQ Newbie
 
Registered: Oct 2007
Location: Calgary, Alberta, Canada
Distribution: Ubuntu 9.04
Posts: 29

Rep: Reputation: 15
Headaches, time lossed...is Samba working or not, Windows can't see samba...crap


I don't know where to start. I think samba is working, but am not sure. I get this message:

User's $HOME/.dmrc file is being ignored. This prevents the default seession and language from being saved. File shouldbe owned by user and have 644 permissions. User's $HOME directory must be owned by user and not writable by users.

What is this ? I am the admininstrator and owner. All su and SMB password are originated by me.

Also, I get these silly windows alerting me to this:

Unable to mount location. Failed to retrieve share list from server.

My Windows XP laptop is saying that it can locate my samba server when I go to run and type: \\192.168.9.3 which is my Ubuntu, samba server.

Also, I am unable to see the Windows computer from my Ubuntu computer. What is that ?

Help !!!! It looks like soon I am going back to Windows where you have to pay for things. I wonder if you get what you pay for ? I'm willing to pay for the solution.
 
Old 10-24-2009, 08:43 PM   #2
irishbitte
Senior Member
 
Registered: Oct 2007
Location: Brighton, UK
Distribution: Ubuntu Hardy, Ubuntu Jaunty, Eeebuntu, Debian, SME-Server
Posts: 1,213
Blog Entries: 1

Rep: Reputation: 88
On your samba box, please get and post the output of:
Code:
ls -alh /home
and
Code:
/etc/samba/smb.conf
The first is a directory listing of the /home folder with permissions and so forth, and the second is your configuration file for samba.
 
Old 10-24-2009, 11:24 PM   #3
networkr
LQ Newbie
 
Registered: Dec 2003
Location: Alpharetta, GA
Distribution: Debian
Posts: 12

Rep: Reputation: 1
Do yourself a favor, use webmin

Use Webmin sysadmin tool to get samba working. Specify workgroup, username and password to user and you're done.
 
Old 10-25-2009, 02:20 PM   #4
vigdavies
LQ Newbie
 
Registered: Oct 2007
Location: Calgary, Alberta, Canada
Distribution: Ubuntu 9.04
Posts: 29

Original Poster
Rep: Reputation: 15
Here's the information you requested about my samba machine

vince@Dell5150C:~$ ls -alh /home
total 12K
drwxr-xr-x 3 root root 4.0K 2009-10-23 06:07 .
drwxr-xr-x 21 root root 4.0K 2009-10-23 07:06 ..
drwxrwxrwx 62 vince vince 4.0K 2009-10-25 13:14 vince

#======================= Global Settings =======================

[global]

## Browsing/Identification ###
workgroup = HOMENET
netbios name = UBUNTU

auth methods = guest
client lanman auth = Yes
lanman auth = Yes
domain master = No
server string = %h server (Samba, Ubuntu)

wins support = yes
os level =17
encrypt passwords = yes
; wins server = w.x.y.z

dns proxy = no
name resolve order = lmhosts host wins bcast

#### Networking ####

; interfaces = lo wlan0
; bind interfaces only = yes

#### Debugging/Accounting ####

log file = /var/log/samba/log.%m
max log size = 1000
syslog = 0

# Do something sensible when Samba crashes: mail the admin a backtrace
panic action = /usr/share/samba/panic-action %d


####### Authentication #######

security = user
valid users = vince
passdb backend = tdbsam
obey pam restrictions = yes
unix password sync = yes
passwd program = /usr/bin/passwd %u
passwd chat = *Enter\snew\s*\spassword:* %n\n *Retype\snew\s*\spassword:* %n\n *password\supdated\ssuccessfully* .
pam password change = yes
map to guest = bad user

########## Domains ###########

; domain logons = yes
; logon path = \\%N\profiles\%U
; logon drive = H:
; logon script = logon.cmd
; add user script = /usr/sbin/adduser --quiet --disabled-password --gecos "" %u
; add machine script = /usr/sbin/useradd -g machines -c "%u machine account" -d /var/lib/samba -s /bin/false %u
; add group script = /usr/sbin/addgroup --force-badname %g


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

; include = /home/samba/etc/smb.conf.%m
; message command = /bin/sh -c '/usr/bin/linpopup "%f" "%m" %s; rm %s' &
; idmap uid = 10000-20000
; idmap gid = 10000-20000
; template shell = /bin/bash
; winbind enum groups = yes
; winbind enum users = yes

usershare owner only = false
usershare allow guests = yes

; usershare max shares = 100



#======================= Share Definitions =======================
; comment = Home Directories
browseable = yes
; read only = yes
; create mask = 0700
; directory mask = 0700
; valid users = %S
;[netlogon]
; comment = Network Logon Service
; path = /home/samba/netlogon
guest ok = yes
; read only = yes
; share modes = no
; comment = Users profiles
; path = /home/samba/profiles
; guest ok = no
; browseable = no
; create mask = 0600
; directory mask = 0700

[printers]
comment = All Printers
browseable = no
path = /var/spool/samba
printable = yes
guest ok = yes
read only = yes
create mask = 0700

[print$]
comment = Printer Drivers
path = /var/lib/samba/printers
browseable = yes
read only = yes
guest ok = yes

# A sample share for sharing your CD-ROM with others.
[cdrom]
comment = Samba server's CD-ROM
read only = yes
locking = no
path = /cdrom
guest ok = yes
preexec = /bin/mount /cdrom
postexec = /bin/umount /cdrom

available = yes
browsable = yes
public = yes
writable = yes

[MyDocuments]
path = /home/vince
guest ok = yes
available = yes
browsable = yes
public = yes
writable = yes
guest ok = yes
comment = Hard Drive
 
Old 10-25-2009, 03:07 PM   #5
vigdavies
LQ Newbie
 
Registered: Oct 2007
Location: Calgary, Alberta, Canada
Distribution: Ubuntu 9.04
Posts: 29

Original Poster
Rep: Reputation: 15
Ok, I've setup webmin. That works...

So, how do I set up the work group, username, and password in it ? The option to do so is not there. Can you please instruct ?

Also, I have posted my smb.conf file. Please review & edit. I think the workgroup, username, and password is there, right ?
 
Old 10-25-2009, 03:41 PM   #6
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,783

Rep: Reputation: 5936Reputation: 5936Reputation: 5936Reputation: 5936Reputation: 5936Reputation: 5936Reputation: 5936Reputation: 5936Reputation: 5936Reputation: 5936Reputation: 5936
At first glance I do not know if this is a typo or cut/paste error but I do not see a [homes] line. Should be first line after the *** shares definition ***. This sets up the home directories for each user. Run the testparm utility in a console windows which checks for syntax errors in the smb.conf file. Is smbd and nmbd running? You can check via the top or ps command. If not then restart and check the logs. Try the following command
smbclient -L UBUNTU (Press the enter key when asked for a password)

Should see lots of info. Also you can try the this command in a windows cmd box.
net view \\UBUNTU

To add a samba user use the smbpasswd command.

Quote:
User's $HOME directory must be owned by user and not writable by users.
drwxrwxrwx 62 vince vince 4.0K 2009-10-25 13:14 vince
 
Old 10-25-2009, 03:58 PM   #7
vigdavies
LQ Newbie
 
Registered: Oct 2007
Location: Calgary, Alberta, Canada
Distribution: Ubuntu 9.04
Posts: 29

Original Poster
Rep: Reputation: 15
I'm trying...every step is a step forward

vvince@Dell5150C:~$ smbclient -L UBUNTU
Enter vince's password:
Domain=[UBUNTU] OS=[Unix] Server=[Samba 3.3.2]
tree connect failed: NT_STATUS_LOGON_FAILURE
vince@Dell5150C:~$

Can you please tell what is the ps command exactly so that we can check to see if those two things are working ?

Can you provide a typical [Homes] profile so that I could add it in to my smb.conf file please ?

Rgds,

Vince
 
Old 10-25-2009, 04:47 PM   #8
vigdavies
LQ Newbie
 
Registered: Oct 2007
Location: Calgary, Alberta, Canada
Distribution: Ubuntu 9.04
Posts: 29

Original Poster
Rep: Reputation: 15
Should I also be able to see my Windows XP machine from Ubuntu

Oh BTW, what do I use to see my Windows XP machine from Ubuntu ? Do I use Mozilla Firefox, and is there a command I type in ? Just to let you know that smb://192.168.9.3 doesn't work. I've typed shares-admin in the terminal mode and I don't know if that's helping me at all.

I appreciate all your help. BTW, how do I give thanks so that it is seen on my profile ? How is this done ? When do I give thanks using this method ?

I've tried out doing the following on my Windows XP machine:

\\UBUNTU
\\192.168.9.2\
\\HOMENET\UBUNTU

These don't work. I'll I get coming up is a window saying:
<The path> The network location cannot be reached. For information about network troubleshooting, see Windows help.

When I ping both the Linux and the Windows machine, they respond appropriately.

I have my GUFW firewall as follows for files sharing according to what I read about making sure the firewall is setup right:

80/tcp
137/udp
138/udp
139/tcp
443/tcp
445/tcp
8008/tcp

Is the above firewall settings correct ?
 
Old 10-25-2009, 06:35 PM   #9
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,783

Rep: Reputation: 5936Reputation: 5936Reputation: 5936Reputation: 5936Reputation: 5936Reputation: 5936Reputation: 5936Reputation: 5936Reputation: 5936Reputation: 5936Reputation: 5936
ps shows what process are running.
ps ax | grep smbd
ps ax | grep nmbd

It does look like there are problems. Lets accomplish one thing at a time. Once we get the XP PC to "see" the Ubuntu then we will work on the Ubuntu seeing XP.

Typical homes directory samba share.
Quote:
[homes]
comment = Home Directories
valid users = %S
create mask = 0700
directory mask = 0700
browseable = No
Did you add a samba user?
smbpasswd -a <username> (User your linux username)

Last edited by michaelk; 10-25-2009 at 06:38 PM.
 
Old 11-01-2009, 08:10 PM   #10
irishbitte
Senior Member
 
Registered: Oct 2007
Location: Brighton, UK
Distribution: Ubuntu Hardy, Ubuntu Jaunty, Eeebuntu, Debian, SME-Server
Posts: 1,213
Blog Entries: 1

Rep: Reputation: 88
Hi again! I was away for a few days, apologies no more contact since. The
Code:
ls -alh
command I gave you should have been
Code:
ls -alh /home/vince
so if you can post this, that would be great. This is an example of a SAMBA share, from my home server:
Code:
[David]
	comment = Private Net Share
	path = /media/storage/private
	valid users = dave
	read only = No
	max connections = 5
That is enough to protect the share! This: http://www.howtogeek.com/howto/ubunt...s-using-samba/ explains a little, and this: http://www.pcmech.com/article/file-s...904-and-samba/ talks about a GUI tool for configuring SAMBA. I haven't tested it!
 
Old 11-01-2009, 08:16 PM   #11
networkr
LQ Newbie
 
Registered: Dec 2003
Location: Alpharetta, GA
Distribution: Debian
Posts: 12

Rep: Reputation: 1
How to set up webmin

Try this documentation on the Wiki:

http://doxfer.com/Webmin/SambaWindowsFileSharing

If samba is not installed on your system prior to the installation of webmin, and you install samba afterwards, you need to "refresh modules" in Webmin in order to get the perl module to show up under the "servers" section. After that, the docs should get you the rest of the way there.

Quote:
Originally Posted by vigdavies View Post
So, how do I set up the work group, username, and password in it ? The option to do so is not there. Can you please instruct ?

Also, I have posted my smb.conf file. Please review & edit. I think the workgroup, username, and password is there, right ?
 
Old 11-07-2009, 03:38 PM   #12
vigdavies
LQ Newbie
 
Registered: Oct 2007
Location: Calgary, Alberta, Canada
Distribution: Ubuntu 9.04
Posts: 29

Original Poster
Rep: Reputation: 15
[SOLVED] Windows XP needs to have TCPIP reset

Everyone,

After I had done a ipconfig /all on my Windows XP machine, I saw that the TCPIP protocol needed to be reset since it was disabled. The quick and only fix is the following.

Now I have a stable Samba server, and it can be seen and edited by my Windows computer.

http://support.microsoft.com/kb/299357
 
Old 11-07-2009, 04:40 PM   #13
irishbitte
Senior Member
 
Registered: Oct 2007
Location: Brighton, UK
Distribution: Ubuntu Hardy, Ubuntu Jaunty, Eeebuntu, Debian, SME-Server
Posts: 1,213
Blog Entries: 1

Rep: Reputation: 88
Good, glad it worked out for you. I would be interested in how the TCP/IP protocol came to be corrupted in your XP registry, and if it was me, I would be checking for rootkits, double-checking my antivirus, and making sure all updates are applied. It's up to you!
 
  


Reply



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
Fedora 11 Samba Home Sharing Headaches ESC201 Linux - Server 2 07-21-2009 08:51 PM
Get pam time restrictions working for linux samba domain login. v2ueha6 Linux - Newbie 1 12-20-2008 03:40 AM
Windows XP Home can't connect to Samba after some time grymuz Linux - Software 2 07-23-2007 04:50 PM
public samba share not working for windows clients kilgor Linux - Software 2 12-16-2005 10:32 AM
Samba/Winbloze Sharing headaches tornadoburn Linux - Networking 6 11-30-2003 06:56 AM

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

All times are GMT -5. The time now is 05:39 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