LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 04-22-2015, 02:38 AM   #1
sagar666
Member
 
Registered: Feb 2013
Posts: 212

Rep: Reputation: Disabled
Samba share cant access in windows


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

Thanks for the help
 
Old 04-22-2015, 07:12 AM   #2
T3RM1NVT0R
Senior Member
 
Registered: Dec 2010
Location: Internet
Distribution: Linux Mint, SLES, CentOS, Red Hat
Posts: 2,385

Rep: Reputation: 477Reputation: 477Reputation: 477Reputation: 477Reputation: 477
Couple of questions for you:

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?
 
Old 04-22-2015, 09:44 AM   #3
sagar666
Member
 
Registered: Feb 2013
Posts: 212

Original Poster
Rep: Reputation: Disabled
Hi T3RM..

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)
 
Old 04-22-2015, 09:56 AM   #4
T3RM1NVT0R
Senior Member
 
Registered: Dec 2010
Location: Internet
Distribution: Linux Mint, SLES, CentOS, Red Hat
Posts: 2,385

Rep: Reputation: 477Reputation: 477Reputation: 477Reputation: 477Reputation: 477
Did you try:

Code:
\\server ip\Test\
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?
 
Old 04-22-2015, 10:12 AM   #5
sagar666
Member
 
Registered: Feb 2013
Posts: 212

Original Poster
Rep: Reputation: Disabled
This directory has full permissions
[root@stork ~]# ls -l /docs
total 0
-rwxrwxrwx 1 root root 0 Apr 21 23:22 test.

I cannot upgrade this server application dependent.

If i try to access like \\server ip\Test

I am getting The account is not authorized to log in from this station.
 
Old 04-22-2015, 10:25 AM   #6
T3RM1NVT0R
Senior Member
 
Registered: Dec 2010
Location: Internet
Distribution: Linux Mint, SLES, CentOS, Red Hat
Posts: 2,385

Rep: Reputation: 477Reputation: 477Reputation: 477Reputation: 477Reputation: 477
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.
 
Old 04-22-2015, 10:33 AM   #7
sagar666
Member
 
Registered: Feb 2013
Posts: 212

Original Poster
Rep: Reputation: Disabled
Hi,

Let me try in RHEL 6.x version.
 
Old 04-22-2015, 10:46 PM   #8
zafar_dandoti
Member
 
Registered: Dec 2005
Location: India
Distribution: centos
Posts: 178

Rep: Reputation: 13
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"
 
Old 04-22-2015, 11:25 PM   #9
sagar666
Member
 
Registered: Feb 2013
Posts: 212

Original Poster
Rep: Reputation: Disabled
Hi Zafar,

Its asking me credentials.
 
Old 04-23-2015, 01:17 AM   #10
zafar_dandoti
Member
 
Registered: Dec 2005
Location: India
Distribution: centos
Posts: 178

Rep: Reputation: 13
Did u enter force user= nobody in share section for the share?
 
Old 04-23-2015, 01:29 AM   #11
zafar_dandoti
Member
 
Registered: Dec 2005
Location: India
Distribution: centos
Posts: 178

Rep: Reputation: 13
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
 
Old 04-23-2015, 01:47 AM   #12
sagar666
Member
 
Registered: Feb 2013
Posts: 212

Original Poster
Rep: Reputation: Disabled
Hi ZaFar,

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
 
Old 04-23-2015, 05:00 AM   #13
Ginola
Member
 
Registered: Sep 2012
Location: London
Distribution: CentOS, RHEL, Ubuntu
Posts: 73

Rep: Reputation: Disabled
have you checked the Credential Manager on the windows client?

Code:
Control Panel\All Control Panel Items\Credential Manager
 
  


Reply

Tags
linux command, samba permissions


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
access Samba share from a windows 2003 host name only rog_ski Linux - Server 2 08-27-2013 05:57 PM
[SOLVED] samba cannot access share from windows 7 ted_chou12 Linux - Software 3 08-15-2012 09:14 PM
Windows 7 unable to access Samba share kaplan71 Linux - Software 2 08-11-2011 04:33 AM
How to access samba share in a Windows domain environment qdog007 Linux - Software 6 02-28-2007 11:56 PM
Access linux SAMBA share from windows pengu Linux - Software 6 02-17-2007 11:55 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 03:29 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration