LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
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 05-28-2007, 09:04 PM   #1
SlowCoder
Senior Member
 
Registered: Oct 2004
Location: Southeast, U.S.A.
Distribution: Debian based
Posts: 1,250

Rep: Reputation: 164Reputation: 164
XP can't authenticate to Samba?


I've set up a simple samba config:
Code:
workgroup = home
netbios name = Samba
encrypt passwords = yes

[homes]
writeable = yes
browseable = no
My account is the same on both my Linux and XP machines. I used "smbpasswd -a [username]" to add the password to samba.

When I attempt to connect to Samba from XP, I am told by XP that the password is incorrect. This is also indicated in the samba logs. I have verified that the Linux and XP passwords match, and that the smbpasswd password is also the same.

Do I need to set some sort of special permissions to allow the samba process to access the home directories for the shares?
 
Old 05-28-2007, 10:28 PM   #2
sparc86
Member
 
Registered: Jul 2006
Location: Joinville, Brazil
Distribution: Debian, CentOS
Posts: 301

Rep: Reputation: 31
Check for the permissions of the shared directory.

First try chmod 777 /home/shared_directory
 
Old 05-29-2007, 06:47 AM   #3
SlowCoder
Senior Member
 
Registered: Oct 2004
Location: Southeast, U.S.A.
Distribution: Debian based
Posts: 1,250

Original Poster
Rep: Reputation: 164Reputation: 164
Quote:
Originally Posted by sparc86
Check for the permissions of the shared directory.

First try chmod 777 /home/shared_directory
If I'm correct, since I'm using the [homes] configuration, only my user should need rights to the /home/user directory, right? I shouldn't need to give other users access to my user's data.
 
Old 05-29-2007, 02:46 PM   #4
btaylor1988
Member
 
Registered: Nov 2005
Location: England
Distribution: CentOS, Fedora
Posts: 79

Rep: Reputation: 15
Quote:
Originally Posted by SlowCoder
[homes]
writeable = yes
browseable = no
i belive adding the "valid users = %S" option under [homes] config will allow valid smbusers to authenticate.

example:

[homes]
comment = Home Directories
valid users = %S
read only = No
browseable = No
 
Old 05-30-2007, 10:02 AM   #5
SlowCoder
Senior Member
 
Registered: Oct 2004
Location: Southeast, U.S.A.
Distribution: Debian based
Posts: 1,250

Original Poster
Rep: Reputation: 164Reputation: 164
Quote:
Originally Posted by zantor
i belive adding the "valid users = %S" option under [homes] config will allow valid smbusers to authenticate.
Bummer, didn't work.

Let me be more clear on my configuration:
Fedora 6 (fully updated), regular user slowcoder, standard permissions.

I've rearranged my config as:
Code:
        workgroup = home
        netbios name = Samba
        encrypt passwords = yes

[homes]
        read only=no
        browseable = no
        valid users=%S
but still no go.
 
Old 05-30-2007, 02:24 PM   #6
kromberg
Member
 
Registered: Feb 2007
Location: Colorado
Distribution: FC6, FC7 x86_64
Posts: 218

Rep: Reputation: 30
Do you have SelInux enabled? If so, it is not allowing writes/deletes/updates to the share. You will need to create new policies to all samba to do those activities.

Keith
 
Old 05-30-2007, 03:21 PM   #7
SlowCoder
Senior Member
 
Registered: Oct 2004
Location: Southeast, U.S.A.
Distribution: Debian based
Posts: 1,250

Original Poster
Rep: Reputation: 164Reputation: 164
Quote:
Originally Posted by kromberg
Do you have SelInux enabled? If so, it is not allowing writes/deletes/updates to the share. You will need to create new policies to all samba to do those activities.
Thank for for this. I did some research, and with a "setenforce 0" to temporarily disable SELinux allowed my connection to be established. So now I need to figure out how to permanently disable it only for smb.
 
Old 05-30-2007, 03:45 PM   #8
kromberg
Member
 
Registered: Feb 2007
Location: Colorado
Distribution: FC6, FC7 x86_64
Posts: 218

Rep: Reputation: 30
Quote:
Originally Posted by SlowCoder
Thank for for this. I did some research, and with a "setenforce 0" to temporarily disable SELinux allowed my connection to be established. So now I need to figure out how to permanently disable it only for smb.
I will post the commands here later on when I get home from work on how to make new policies.

Keith
 
Old 05-31-2007, 01:49 AM   #9
p_s_shah
Member
 
Registered: Mar 2005
Location: India
Distribution: RHEL 3/4, Solaris 8/9/10, Fedora 4/8, Redhat Linux 9
Posts: 237
Blog Entries: 1

Rep: Reputation: 34
Code:
setsebool -P smbd_disable_trans 1 
service smb restart
Link : http://www.jihe.net/2006/01/
Manual page : man samba_selinux

Following link provide how to disable selinux for apache in three ways :
1. Using graphical interface fo system-config-securitylevel.
2. Running setsebool command to boolean value of selinux parameters.
3. Directly changing boolean value in /etc/selinux/targeted/booleans.

Links :
http://kbase.redhat.com/faq/FAQ_93_5457.shtm

Tell us if you still find problem.
 
Old 05-31-2007, 06:51 AM   #10
SlowCoder
Senior Member
 
Registered: Oct 2004
Location: Southeast, U.S.A.
Distribution: Debian based
Posts: 1,250

Original Poster
Rep: Reputation: 164Reputation: 164
Again, thanks! I'll look at that as soon as I get a chance.
 
  


Reply



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: New AD users can't authenticate warci Linux - Networking 2 04-10-2006 02:18 AM
Samba Authenticate t.augusto Ubuntu 2 11-04-2005 03:13 PM
Samba won't authenticate against NT PDC gvaught Linux - Networking 3 01-29-2004 03:28 PM
Samba: Authenticate Linux-Clients in Samba Domain & Mount mule Linux - Software 0 12-10-2003 01:21 AM
Can't authenticate to samba with smbclient palmercabel Linux - Networking 8 12-04-2003 02:57 PM

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

All times are GMT -5. The time now is 10:08 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
Open Source Consulting | Domain Registration