LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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-31-2005, 07:12 AM   #1
crispyleif
Member
 
Registered: Mar 2005
Location: Norway, by the coast
Distribution: Debian and the likes
Posts: 190

Rep: Reputation: 31
SAMBA , need help ! ...tried almost everything


I hope somebody can help a little (or more) on this :


I am trying to set up samba on a server in the following way :


server shares :

/home/user1
/home/user2
/home/commonuserdata

so that user1 can see "server" in network neighbourhood, connect with his password and be taken to
/home/user1, user2 the same way (except beeing taken to /home/user2), and /home/commonuserdata accesible by both win users.

I've tried setting this up in webmin and swat but I can't get it running, the windows machines (xp home and pro) find the server ok, but when entering password nothing happens.

I tried setting security=share, guest only, open access so to speak, and the same happens, they find the server when searching for it, can ping it, but when connecting nothing happens.

I'm not posting here out of laziness, I've read most howto I can find (including the official) but it seems to be over my head..

Server is running Debian Sarge btw, everything else works ; NFS, internet, webserver, mail ... just samba I simply can't get running/accesible from XP. I know XP Home has some issues with domain logon, but that shouldn't stop the XP Pro (corporate) machine..

Please, all help welcome !

EDIT: Just to mention, I've tried turning of all kind of firewalls

Last edited by crispyleif; 10-31-2005 at 07:26 AM.
 
Old 10-31-2005, 09:54 AM   #2
nistelrooy
Member
 
Registered: Oct 2003
Location: Singapore
Distribution: debian
Posts: 162

Rep: Reputation: 30
Hi there

Your setup isn't difficult.

Make sure your basic connectivity is okay first?
Check netstat -ntlp, and see whether are there any samba services running. Each time you make changes to the configuration, you have to restart the service for configuration to apply.

Second and lastly,
Here's what you need in your samba configuration file (smb.conf)
Quote:

[homes]
comment = Home Directories
browseable = no
writable = yes
valid users = user1 user2

[commonuserdata]
comment = commonuserdata
path = /home/commonuserdata
admin users = user1 user2
writable = yes
valid users = user1 user2
Restart samba.

Try accessing your server.
 
Old 10-31-2005, 11:44 AM   #3
crispyleif
Member
 
Registered: Mar 2005
Location: Norway, by the coast
Distribution: Debian and the likes
Posts: 190

Original Poster
Rep: Reputation: 31
Thanks for the reply ! I needed some input badly (still do, but great to be noticed)


netstat -ntlp o the server :

Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
tcp 0 0 0.0.0.0:32768 0.0.0.0:* LISTEN -
tcp 0 0 0.0.0.0:2049 0.0.0.0:* LISTEN -
tcp 0 0 0.0.0.0:993 0.0.0.0:* LISTEN 2118/inetd
tcp 0 0 0.0.0.0:995 0.0.0.0:* LISTEN 2118/inetd
tcp 0 0 0.0.0.0:901 0.0.0.0:* LISTEN 2118/inetd
tcp 0 0 0.0.0.0:3306 0.0.0.0:* LISTEN 2171/mysqld
tcp 0 0 0.0.0.0:843 0.0.0.0:* LISTEN 2357/rpc.statd
tcp 0 0 0.0.0.0:139 0.0.0.0:* LISTEN 2118/inetd
tcp 0 0 0.0.0.0:716 0.0.0.0:* LISTEN 2233/rpc.mountd
tcp 0 0 0.0.0.0:846 0.0.0.0:* LISTEN 2362/rpc.rquotad
tcp 0 0 0.0.0.0:110 0.0.0.0:* LISTEN 2118/inetd
tcp 0 0 0.0.0.0:143 0.0.0.0:* LISTEN 2118/inetd
tcp 0 0 0.0.0.0:111 0.0.0.0:* LISTEN 1730/portmap
tcp 0 0 0.0.0.0:10000 0.0.0.0:* LISTEN 2381/perl
tcp 0 0 0.0.0.0:81 0.0.0.0:* LISTEN 2395/ispconfig_http
tcp 0 0 0.0.0.0:21 0.0.0.0:* LISTEN 2577/proftpd: (acce
tcp 0 0 192.168.66.11:53 0.0.0.0:* LISTEN 2562/named
tcp 0 0 127.0.0.1:53 0.0.0.0:* LISTEN 2562/named
tcp 0 0 127.0.0.1:953 0.0.0.0:* LISTEN 2562/named
tcp 0 0 0.0.0.0:25 0.0.0.0:* LISTEN 2545/master
tcp6 0 0 :::80 :::* LISTEN 2436/apache2
tcp6 0 0 :::22 :::* LISTEN 2350/sshd
tcp6 0 0 ::1:953 :::* LISTEN 2562/named
tcp6 0 0 :::25 :::* LISTEN 2545/master
tcp6 0 0 :::443 :::* LISTEN 2436/apache2

I feel stumped...is samba running afterall ?


I followed your instructions on smb.conf , and as before server showed up in network neighbourhood, click it, up comes the login box and no user name/ passwd combo I can imagine works... also tried blank and user@server etc.


Any idea what can do this ?

EDIT : regarding samba I'm lost as you might see.... please bear with me ! your replies are appreciated..

Also, after the password doesn't go through win xp writes \[the name of the win pc]\[the login I tried] in the login field

Last edited by crispyleif; 10-31-2005 at 12:44 PM.
 
Old 10-31-2005, 01:01 PM   #4
crispyleif
Member
 
Registered: Mar 2005
Location: Norway, by the coast
Distribution: Debian and the likes
Posts: 190

Original Poster
Rep: Reputation: 31
Mr. Nistelrooy :


I owe you an apology and a BIG THANK YOU !


it's working 100 % , I forgot smbpasswd -a [user] ****



Thanks again !
 
  


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
Samba/Cups print sharing problems (/var/spool/samba files) Gates1026 Linux - General 9 06-23-2013 01:33 AM
I need the content from thegoldenear.org/toolbox/unices/samba/samba-setup.html rtg2001 Linux - Networking 1 08-05-2004 05:54 PM
Samba share - network name no longer available when browsing samba from win2k dorango Linux - Software 0 03-02-2004 01:02 PM
Samba: Authenticate Linux-Clients in Samba Domain & Mount mule Linux - Software 0 12-10-2003 01:21 AM
when i restart SAMBA,it says:stop samba failed,start SAMBA OK! whepin Linux - Networking 3 12-26-2001 05:54 AM

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

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