Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
10-31-2005, 07:12 AM
|
#1
|
Member
Registered: Mar 2005
Location: Norway, by the coast
Distribution: Debian and the likes
Posts: 190
Rep:
|
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.
|
|
|
10-31-2005, 09:54 AM
|
#2
|
Member
Registered: Oct 2003
Location: Singapore
Distribution: debian
Posts: 162
Rep:
|
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.
|
|
|
10-31-2005, 11:44 AM
|
#3
|
Member
Registered: Mar 2005
Location: Norway, by the coast
Distribution: Debian and the likes
Posts: 190
Original Poster
Rep:
|
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.
|
|
|
10-31-2005, 01:01 PM
|
#4
|
Member
Registered: Mar 2005
Location: Norway, by the coast
Distribution: Debian and the likes
Posts: 190
Original Poster
Rep:
|
Mr. Nistelrooy :
I owe you an apology and a BIG THANK YOU !
it's working 100 % , I forgot smbpasswd -a [user] ****
Thanks again !
|
|
|
All times are GMT -5. The time now is 12:49 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|