Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
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.
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.
Hi@all!
I'm using Mandrake 10 with Samba 3.0.2a, and I'm not able to access the shares on my Linux pc from a Windows XP pc. Everytime I try, I get a messagebox, saying that I do not have privileges to access the directory. The $printers directory is accessible, however, it contains no other preferences in the smb.conf than the share I created myself and cannot enter now.
The samba manual told me that, even with the 'security = share' option which I can set in SWAT, I must have same user accounts on both the linux and Windows pc. I've done that too, but it still doesn't work. Accessing Windows shares from the Linux pc works well, by the way.
Distribution: Gentoo, Slack, SuSE, Ubuntu... Flavor of the week
Posts: 134
Rep:
I just went through this today. My firewall was causing all the problems... I opened up port 139 and set the SuSE firewall so that it knew I was using my Linux box as a Samba server, and it's been smooth sailing since.
Try taking down the firewall (just for a minute) and see if you can connect that way. Are you able to ping the Linux box with the XP box?
I do not have a firewall enabled, since my router has one
What confuses me, is that the Winwos box doesn't even ask for a password, it just says that I do not have the rights to access the share. When I try to connect to the share with another Linux box, he asks for a username and password.
OK, it still doesn't work. The problem that I can't even enter an username/password on the windows machine is definitely Windows' fault (again), since I can enter this stuff when trying from a linux box.
Here's my smb.conf, maybe someone finds something interesting in there
# Samba config file created using SWAT
# from 127.0.0.1 (127.0.0.1)
# Date: 2004/07/25 18:50:12
# Global parameters
[global]
netbios name = LINUX1
server string =
security = SHARE
map to guest = Bad Password
log file = /var/log/samba/log.%m
max log size = 50
socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
printcap name = cups
dns proxy = No
ldap ssl = no
printer admin = @adm
printing = cups
[printers]
comment = All Printers
path = /var/spool/samba
create mask = 0700
guest ok = Yes
printable = Yes
print command = lpr-cups -P %p -o raw %s -r # using client side printer drivers.
browseable = No
[print$]
path = /var/lib/samba/printers
write list = @adm, root
inherit permissions = Yes
guest ok = Yes
Uhmmm... But SWAT shows me that I'm member of WORKGROUP. And when I browse the smb network, my box apperas in WORKGROUP. But I'll add this to smb.conf, simply 'workgroup = WORKGROUP', or what?
Accessing Trash works without user/password, but when I try to access a share below my (or another) home directory, it asks for a password. I read several howto's, but none helped me in this issue.
have you got the widows user mapped to a unix user ? and does that unix user have the right to browse the home directory? if not you may have to do a chmod
Hi, your smb.conf seems to be correct.
You don't need to add users with smbpasswd -a because you grant access to the guest user (everyone).
I can see that you want to share the "/home/mod/Downloads" directory. Try to type "ls -la /home/mod" and watch the rights (UNIX rights) to the Downloads directory. To be sure type "chmod 777 /home/mod/Downloads -R". Doing so will open this directory in Full control to everyone.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.