[SOLVED] need help configuring samba for no password
Linux - ServerThis forum is for the discussion of Linux Software used in a server related context.
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.
guest account = ohprso
log file = /var/log/samba.%m
max log size = 50
passdb backend = tdbsam
socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
preferred master = yes
wins support = yes
dns proxy = no
[website]
path = /srv/tomcat/webapps/ohprs
public = yes
guest ok = yes
guest only = yes
writeable = yes
browseable= yes
printable = no
create mask = 0660
[xfer]
path = /home/ohprs/xfer
public = yes
guest ok = yes
guest only = yes
writeable = yes
browseable= yes
printable = no
create mask = 0660
This is a modified version of a smb.conf, with passwords, that worked. Before, I had 'security = user', and 'valid users' in the service sections, and did not have 'guest ok', or 'guest only' in these sections. The previous version worked, but I had to login in with ID and PW.
When I restart samba with the above, it still gives me the User Id and password dialog. Why?
That is because you have disabled anonymous visits to your samba share and have provided credentials for valid users.
So its obvious that you do not want any user to access other user's share.
Well, I don't want "anonymous" access. I want users to access as a guest without having to enter a password and I want the user ID for the guest account to be "ohprso". I have the smb.conf file shown below in a non-Domain LAN which let's local users (192.168.2.0) connect w/o a password as user 'guest' and remotely with password as user 'cantleys'. This works fine. I'm basically trying to accomplish the same thing with the posted config without even bothering with remote access.
I have specified 'security = share' in both cases, 'guest account = xxxx' in both cases and, for the non-passworded local shares 'public = yes, guest ok = yes, guest only = yes' in both cases. I don't get why the below config works and the above config doesn't.
The main difference I see is that the guest account in the working version is actually "guest" and in the non-working config is "ohprso". Does guest account have to litterally be "guest" for this to work? I'm sure I've done it before with another ID as long as that ID is in /etc/passwd.
First of all, I upgraded from samba 3.0.25b to 3.5.8. That did make a difference. I used the -o option of useradd to create a "guest" user with the same uid as the target folder owner: ohprso, no password. Then I made the following smb.conf file. That seemed to do the trick! Note that I also had to remove the old credentials from the various windows workstations: http://windows.microsoft.com/en-id/w...er-credentials
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.