Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

New To Linux (SuSe Linux 10) - Windows to SAMBA 3

Status
Not open for further replies.
Jun 5, 2005
103
US
I have recently installed SuSe Linux 10 on a computer I wish to use as a file server on my home network. I want to setup samba so I can access folders from windows with a user name or password required

I attempted to configure Samba using the Samba Server Configuration in YaST.

Workgroup: (same as my windows workgroup)

I have setup both root and my user login as users.

When I try to access the share from my WIN2000/XP computer and look in the network, it shows the Linux computer as 'Suselinux' (What I Named It). I'm able to see the shares but get prompted for a username and password, when I try to access the shares.

I put in my username and password that I use to log into the Linux box, but get a message stating that the username or password is incorrect.

Anyone have an idea of what I am missing or doing wrong?

Thanks!!!
 
You need to add the debug options to your smb.conf and restart and then check the log files in /var/log/samba/


Trojan.
 
Trojan,

Thank You for the reply but I'm sooo new to Linux, that I do not know how to do this.

How do I add the debug options to the smb.conf?

Do I have to go to the directory /var/log/samba/ and open the file smb.conf?

Once I open this file shat should I do?

Thanks!!!
 
I think what you need to do is to add the Linux users to the Samba users file:
[tt]
smbadduser -a USERNAME
[/tt]
 
Edit /etc/samba/smb.conf
and add the line
Code:
log level = 4
Then restart the service with
Code:
service smb restart
as root.
The debug output should appear in the /var/log/samba/ directory.
Use
Code:
ls -ltr
to see which log files have been updated and check them out.
You could also try adding
Code:
passwd chat debug = yes
to your smb.conf file.



Trojan.
 
Guys, Thanks for the tips!!! I now can access shares on my linux box from my windows client. Now I noticed that I can access other users directory. How can I apply secureity on the shares. I want usera to only have access to his directory. The same applies to userb.

Thanks!
 
best way to do this is in the smb.conf under the shares section looks like this

[home]
path= /root/home
browserable=yes
valid users = root bin

the valid user bit will permit only the listed users in this case root and bin you could add invalid to the begining to flip this to allow everyman and his dog but not root and bin

hope this helps
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top