LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 09-27-2005, 04:16 PM   #1
goliathlibrary
LQ Newbie
 
Registered: Sep 2005
Posts: 15

Rep: Reputation: 0
Samba Authentication Errors.


Hello everyone. I have followed all the guides and articles i could find on this site regarding samba but am getting authentication errors. This was actually happening before i ran through everything here. I have also done a pile of other things but that article pretty much sums everything up. (couldnt post a url where this is my first post.)

Basically All my clients, Windows , Linux, and my xbox can all see each other but when i try to access the shares it wont allow the user in. I know for a fact i am not making typos.

When i open my smbusers file has the root user and my jason2=jason2 user. but when i open the smbpasswd file it has my username and the correct hash.

my fstab entry looks like this.

//windowsmachine/dataf32 /mnt/windows smbfs credentials=/home/jason2/.smbmountpasswd 0 0

i get this error

17122: session setup failed: ERRDOS - ERRnoaccess (Access denied.)
SMB connection failed


..... Same thing from my xbox, and when i try to log in from windows. Just wont Authticate. Anyone have any suggestions. I just dunno where to go from here. Any suggestion is appreciated.

/J

Last edited by goliathlibrary; 09-27-2005 at 04:18 PM.
 
Old 09-29-2005, 03:04 AM   #2
amitsharma_26
Member
 
Registered: Sep 2005
Location: New delhi
Distribution: RHEL 3.0/4.0
Posts: 777

Rep: Reputation: 31
I can only help you or guide you in case of SAMBA with windows clients...

Are you running samba as a PDC then..

first you need to create trust machine account.
second useradd & its passwd
third smbpasswd -a -e username

On xp client box , do disable firewall.
Joing the xp machine to your domain & enter your linux root or administrator loginname & password over there. It will welcome you to domain. Restart the machine.

For roaming profile... Put proper rights to directories & make a folder for every user login in your Profile folder.


I can guide you more deeply in windows & SAMBA case..
Need more help tht too immdiately... feedback fast.

Thanks
 
Old 09-29-2005, 11:08 AM   #3
goliathlibrary
LQ Newbie
 
Registered: Sep 2005
Posts: 15

Original Poster
Rep: Reputation: 0
Thanks for the reply. so i have tried that making another user and adding the machine. i get this which indicates that all was done ok when i add the password.

Enabled user jason.


But when i try to connect to it, it still will not authenticate using root or the new user. Windows XP firewall is off. Keep in mind this happens on my XBOX as well. So i am leaning towards something that is configured incorrectly on the linux box. Also you asked was i using it as a PDC, i dont belive so because i am only using a workgroup. I do remember seeing that in there tho.

I can see all the shares i set fine. as far as i know the permissions the are ok cause they are set to read for other and group. I am not sure where to go from here? any other suggestions?

/J

Last edited by goliathlibrary; 09-29-2005 at 11:09 AM.
 
Old 09-29-2005, 11:16 AM   #4
amitsharma_26
Member
 
Registered: Sep 2005
Location: New delhi
Distribution: RHEL 3.0/4.0
Posts: 777

Rep: Reputation: 31
Can you post your SMB.CONF file ????????

It will be more helpful for me.
 
Old 09-29-2005, 11:39 AM   #5
goliathlibrary
LQ Newbie
 
Registered: Sep 2005
Posts: 15

Original Poster
Rep: Reputation: 0
yip sure. domain logons = No i have toyed with that from yes to no with no difference.

/J

# smb.conf is the main Samba configuration file. You find a full commented
# version at /usr/share/doc/packages/samba/examples/smb.conf.SUSE if the
# samba-doc package is installed.
# Date: 2005-04-04
[global]
workgroup = SEINFELD
netbios name = SuSeLiNuX
server string = SuSe Samba Server. Authorized Users Only.
security = user
encrypt passwords = yes
local master = no
hosts allow = 192.168.2.5 192.168.2.9
printcap name = cups
printcap cache time = 750
cups options = raw
printer admin = @ntadmin, root, administrator
username map = /etc/samba/smbusers
smb passwd file = /etc/samba/smbpasswd
map to guest = Bad User
include = /etc/samba/dhcp.conf
logon path = \\Suselinux\home\jason2
logon home = \\Suselinux\home\jason2

domain logons = No
domain master = No




[homes]
comment = Home Directories
valid users = %S
browseable = No
read only = No
inherit acls = Yes

[users]
comment = All users
path = /home
read only = No
inherit acls = Yes
veto files = /aquota.user/groups/shares/

[groups]
comment = All groups
path = /home/groups
read only = No
inherit acls = Yes

[jasonhome]

path = /home/jason2
valid users = @admin, root, jason2
browseable = yes
writable = Yes
create mask = 0765
public = yes
 
Old 09-29-2005, 12:04 PM   #6
amitsharma_26
Member
 
Registered: Sep 2005
Location: New delhi
Distribution: RHEL 3.0/4.0
Posts: 777

Rep: Reputation: 31
First of all

Run " smbstatus "

Then it should result all your shares on your samba server..... If getting any other error , feedback asap.
 
Old 09-29-2005, 12:06 PM   #7
goliathlibrary
LQ Newbie
 
Registered: Sep 2005
Posts: 15

Original Poster
Rep: Reputation: 0
hrm u might be onto something. i get this:


jason2@SuSeLiNuX:~> smbstatus

Samba version 3.0.13-1.1-SUSE
PID Username Group Machine
-------------------------------------------------------------------

Service pid machine Connected at
-------------------------------------------------------

No locked files


so i guess it doesnt think any shares are active. Where should i go from here?. in yast all the shares look good. from windows i see the jasonhome folder.

Last edited by goliathlibrary; 09-29-2005 at 12:08 PM.
 
Old 09-29-2005, 12:27 PM   #8
amitsharma_26
Member
 
Registered: Sep 2005
Location: New delhi
Distribution: RHEL 3.0/4.0
Posts: 777

Rep: Reputation: 31
Instead of your smb.conf look fashionable.... We'll start from scratch & in starting we'll configure samba for security=user without domain logon.

[global]
workgroup = SEINFELD
netbios name = suselinux
security = user
encrypt passwords = yes

#We'll leave printing for the moment. Lets first make our minimal conf samba running.

[homes]
valid users = %u
browseable = no
read only = no


I hope you dont mind... But i dont want myself to get confused...So i want you to start with this minimal conf...coz its easy to troubleshooot in this minimal conf. Once this gets going..We'll finish rest in minutes.

do it & then restart smb service.

After tht run
smbclient -L 127.0.0.1

It will list the share of home in it.

Feedback asap.
 
Old 09-29-2005, 02:07 PM   #9
goliathlibrary
LQ Newbie
 
Registered: Sep 2005
Posts: 15

Original Poster
Rep: Reputation: 0
alrite. sorry for the delay. done and done. i get this now when i run the SMB client.

Password:
Domain=[SUSELINUX] OS=[Unix] Server=[Samba 3.0.13-1.1-SUSE]

Sharename Type Comment
--------- ---- -------
IPC$ IPC IPC Service (Samba 3.0.13-1.1-SUSE)
ADMIN$ IPC IPC Service (Samba 3.0.13-1.1-SUSE)
jason2 Disk Home directory of jason2
Domain=[SUSELINUX] OS=[Unix] Server=[Samba 3.0.13-1.1-SUSE]

Server Comment
--------- -------

Workgroup Master
--------- -------
SEINFELD SUSELINUX



which is certianly looking ok. So where from here.
 
Old 09-29-2005, 02:12 PM   #10
amitsharma_26
Member
 
Registered: Sep 2005
Location: New delhi
Distribution: RHEL 3.0/4.0
Posts: 777

Rep: Reputation: 31
Your samba is working fine now.........

I assume that you have created the users... assigned them password & then added them to smbpasswd -a -e .

Now go & login to your windows box.... Go to network neigbourhood & there you'll see the home share.

Try to access it. Try creating some files in it. If getting access denied, don you worry. We'll make users as their owners with chown command.

Feedback.
 
Old 09-29-2005, 02:27 PM   #11
goliathlibrary
LQ Newbie
 
Registered: Sep 2005
Posts: 15

Original Poster
Rep: Reputation: 0
hrm no go from the windows box still wont take the user and password. I;ve even added another brand new user to the system to double check. Still no go. Would i have to allow this specific windows machine access. its called jaysmachine.
 
Old 09-29-2005, 02:40 PM   #12
amitsharma_26
Member
 
Registered: Sep 2005
Location: New delhi
Distribution: RHEL 3.0/4.0
Posts: 777

Rep: Reputation: 31
We have to allow access to a windows machine , by creating a machine trust account.. but only when we are using SAMBA as a Domain controller.

Eventhough not in our case.

Wait wait wait.. you said, windows box still didnt took your username & password. In being user-mode & non-domain controller, it doesnt stop you from login to your windows box.

There's something wrong other thn the configs... You need to have very same username & password at windows box also dear. The very same username & password you have at your linux box. By this way when you login to windows box you login to your windows box with windows credentials not with SAMBA username n passwords. Any how samba wont stop you from logging you over to windows.

The schema your are talking about is the implementation of samba running as a DOMAIN CONTROLLER.

Did you got me ?

Check out 2 things.... windowx username & passwords should have to be very same of linux box username & passwords.

Feedack.
 
Old 09-29-2005, 02:47 PM   #13
goliathlibrary
LQ Newbie
 
Registered: Sep 2005
Posts: 15

Original Poster
Rep: Reputation: 0
no no, i can log into windows itself fine, when i go to share it wants a username and password.

so, however, my windows box does use a different password then linux user, same username, different pass. are u saying they must be the same for this to work? even tho it prompts me and i can put whatever in
 
Old 09-29-2005, 02:52 PM   #14
amitsharma_26
Member
 
Registered: Sep 2005
Location: New delhi
Distribution: RHEL 3.0/4.0
Posts: 777

Rep: Reputation: 31
You created whtever your windows login name is with

1. useradd "username"

2. passwd username
enter password: tokens updated.

3. smbpasswd -a -e "username"
enter passwd: tokens updated & enabled user.

Thats it.

restart your samba service.

Go to windows ... double click your share.. enter username & password. It have to work. No reasons for it not to work.
 
Old 09-29-2005, 03:01 PM   #15
amitsharma_26
Member
 
Registered: Sep 2005
Location: New delhi
Distribution: RHEL 3.0/4.0
Posts: 777

Rep: Reputation: 31
Any UPDATE..................

Feedback.... m waiting for your INPUT.
 
  


Reply


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
Samba without authentication maginotjr Slackware 6 11-21-2005 05:07 PM
Samba authentication leeloo2 Linux - Newbie 2 12-13-2004 05:32 PM
ftp login authentication and several other errors in RedHat 9.0 Kerr Linux - Software 2 05-20-2004 11:49 AM
Samba authentication cmoloney Linux - Networking 32 12-01-2003 09:36 PM
Samba authentication ltrain Linux - Networking 1 06-13-2001 03:44 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 07:46 PM.

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
Open Source Consulting | Domain Registration