Red HatThis forum is for the discussion of Red Hat Linux.
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.
I'm having trouble with a Linux Samba share after migrating a system from RHEL 5 to RHEL 7.
My current configuration is below.
Code:
[global]
workgroup = DOCS
security = share
[data]
comment = Data
path = /export
read only = yes
guest ok = yes
browsable = yes
In RHEL7 the service will fail to start. I can get the service to start if I change it to "security = user", but that's not what I want because it will force users trying to connect for logins. I need this share to be completely open, and Windows users can't be prompted for a username or password whatsoever. Has anyone run into this, or know of a work around?
I see in the new man page that "security = user" is deprecated. However, I must have the share completely wide open to guests.
I already opened a case with Red Hat, but it seems this may be something the community can help answer. I can't imagine I'm the first to have run into this. All my google and forum searches have come up empty.
I'm having trouble with a Linux Samba share after migrating a system from RHEL 5 to RHEL 7. My current configuration is below.
Code:
[global]
workgroup = DOCS
security = share
[data]
comment = Data
path = /export
read only = yes
guest ok = yes
browsable = yes
In RHEL7 the service will fail to start. I can get the service to start if I change it to "security = user", but that's not what I want because it will force users trying to connect for logins. I need this share to be completely open, and Windows users can't be prompted for a username or password whatsoever. Has anyone run into this, or know of a work around?
I see in the new man page that "security = user" is deprecated. However, I must have the share completely wide open to guests.
Try
Code:
public = yes
for your "must be open to guests" needs. Also, check selinux status as well, if you're having other issues. Anything in the logs? Any other info?
Thanks for the suggestion. I've been trying a number of things, but still no luck so far. This is what I have currently.
Code:
[root@server1 samba]# cat smb.conf
# See smb.conf.example for a more detailed config file or
# read the smb.conf manpage.
# Run 'testparm' to verify the config is correct after
# you modified it.
[global]
workgroup = SAMBA
security = user
passdb backend = tdbsam
printing = cups
printcap name = cups
load printers = yes
cups options = raw
[xfer]
comment = Files for transferring
path = /export
public = yes
guest ok = yes
writable = no
[root@server1 samba]#
You need to add map guest = bad user to the global section of your smb.conf file to enable . By default the guest account is nobody which may not have sufficient permissions. The posted link creates a special guest account and then creates the public directory that it owns.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.