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.
When try to access my share I am getting below error
you might not have permission to use this network resource contact the administrator of this server to find out you have access permission
the account is not authorized to login from this station
below is the my smb.conf file and firewall disabled.
[global]
workgroup = XYZ.COM
realm = XYZ.COM
netbios aliases = SAMBA
server string = Samba Server Version %v
security = share
passdb backend = tdbsam
cups options = raw
wins support = true
[Test]
comment = docs HW
writable = yes
path = /docs/
browseable = yes
read only = No
guest ok = Yes
Public = Yes
1. Which Linux OS you are using?
2. Which account you are using to access samba share?
3. Did you run smbpasswd to setup password for that account?
4. Tell us the exact way you are trying to access the share, if you are doing Start --> Run --> Samba share (tell us what you are putting here as Samba share path, give us exactly what you typed)
You mentioned firewall is off, what about selinux? Did you try mounting the samba share on the same machine?
1. RHEL 4 OS
2. I havent using any account for share. I want to configure my shares with out password hence not created any account.
4.I am accessing like \\server ip from windows 8.1
5.selinux disabled
6.Did you try mounting the samba share on the same machine?
mount -t cifs stork:/docs /test
Password:
retrying with upper case share name
mount error 6 = No such device or address
Refer to the mount.cifs(8) manual page (e.g.man mount.cifs)
Would like to mention that RHEL 4 is EOL and you wouldn't be getting support. I would suggest you to get in touch with Red Hat to check out the upgrade options that you have.
If this is a test machine then I would suggest using either CentOS 6.6 or CentOS 7.
Also, what are the permissions set on /docs directory?
I have tested your smb.conf on my system and it works perfectly fine. I have tested it using RHEL 6.4 and Windows 7. Here is what I think:
1. Either, Windows 8.1 is not able to work with older RHEL system. Which I think is the case.
2. Or, it require some registry tweaks on Windows 8.1 end to get it working with RHEL 4.
Instead of security=share use
security=user and
map to guest= Bad User
then in ur share add
force user= nobody
That should help
Samba searches for ur remote username in samba database if it is not found in converts it to "Bad User" which by default user "nobody"
That setup had worked for me when using XP erlier.
Just fallback to security=share and add guest accout = nobody and force user = nobody to the share restart samba.
Tell us what that returns
No luck same error If Put security = ADS 0r user It will ask Passwor. If I put share I am getting this error "The account is not authorized to log in from this station"
[Test]
comment = docs HW
path = /docs/
writable = Yes
force user = nobody
browseable = yes
read only = No
guest ok = Yes
geust account = nobody
Public = Yes
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.