LinuxQuestions.org
Visit Jeremy's Blog.
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 08-01-2011, 04:26 AM   #1
qwerty77
LQ Newbie
 
Registered: Aug 2011
Posts: 8

Rep: Reputation: Disabled
New Samba user can't access shares


We are running a Samba fileshare which has several users specified in the smb.conf as follows:

Code:
  # path = /data/HR
        path = /usbhdd/HR
        writeable = yes
        browseable = yes
        guest ok = no
        oplocks = no
        locking = no
        valid users = bungle zippy charlie root joe
        veto files = /*.msi/*.exe/*.mp3/*.bat/*.com/*.dll/*.lnk/*.asd/*.shb/*.vb/*.wsf/*.wsh/*.pif/*.scr/*.chm/*.hta/*.shs/*.vbs/*.vbe/*.js/*.jse/*.wmv/*.3gp/*.avi/*.mp4/
The server is also used as NIS server and all the users specified also have server accounts created using adduser. The passwords used to authenticate for Samba are therefore being handled by PAM and are stored encrypted in /etc/shadow.

All is good for all users except for zippy, who was added later. Zippy is unable to successfully authenticate to connect to the Samba fileshare.

Zippy is however able to login via NIS, which confirms that his server account is operational and working fine.

When he tries to login to the fileshare, the following entry appears in /var/log/samba/log.zippy

Code:
[2011/08/01 17:23:50.555369,  1] smbd/service.c:678(make_connection_snum)
  create_connection_server_info failed: NT_STATUS_ACCESS_DENIED
After the user account on the server was setup, all I did was add zippy's name to the smb.conf in the same place as the others. Did I miss something?

Thanks.
 
Old 08-01-2011, 10:26 PM   #2
gregvp
LQ Newbie
 
Registered: Dec 2006
Distribution: ARCH Linux
Posts: 15

Rep: Reputation: 2
It's been a while since I did any of this, but you used to have to run smbpasswd -a zippy (as root), after adding him as a unix user, which you've done.

I have an idea that Samba has changed recently though. Best check the tutorials on their site.
 
1 members found this post helpful.
Old 08-01-2011, 11:13 PM   #3
qwerty77
LQ Newbie
 
Registered: Aug 2011
Posts: 8

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by gregvp View Post
It's been a while since I did any of this, but you used to have to run smbpasswd -a zippy (as root), after adding him as a unix user, which you've done.

I have an idea that Samba has changed recently though. Best check the tutorials on their site.
Thanks for that Greg. I just tried that and it asked me for the user's password. I'm an administrator and don't know what password the user has used on the server. I'm also one of those named users and I do know that the guy the setup the share originally never needed to ask me what my password was when he set it up. I think it should be authenticating using the existing passwords in /etc/shadow and it appears to be doing so for all except the new user.

Anyway, I used smbpasswd as a workaround, since it enabled me to add the user. I grabbed the user and asked her to enter her password directly. I'll consider this job done! :-)

Thanks for your help.
 
Old 08-02-2011, 12:58 AM   #4
centos123
Member
 
Registered: Apr 2011
Posts: 397

Rep: Reputation: 16
@qwerty
can you give me some detail of users file/directories permission you are using and also the group they belongs..of yours linux server
 
1 members found this post helpful.
  


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
Unable to see shares on samba server - no authentication access desired (open access) neoelf Linux - Networking 1 06-14-2009 03:18 PM
can not access samba shares from a VIRTUAL samba server using smb4k nass Fedora 0 12-13-2008 04:39 AM
Linux Client ADS-Authenticated User Can't Access Samba Shares lavie Linux - Software 1 09-12-2006 07:14 AM
Why Can't I Access Samba Shares Via As ADS User papaqube Linux - Software 1 05-09-2006 02:12 PM
Samba -- XP user can log in to shares but smbclient user always gets password errors ejoe Linux - Software 3 04-18-2005 10:55 AM

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

All times are GMT -5. The time now is 08:30 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