LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
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 07-28-2016, 01:54 PM   #1
freymish
LQ Newbie
 
Registered: Oct 2015
Location: Grand Rapids, MI
Distribution: Red Hat, Ubuntu, Debian
Posts: 5

Rep: Reputation: Disabled
Thumbs down force user in Samba breaks access to two shares but works fine on many others


I have an Ubuntu 14.04 server that I am using for SFTP. The people on the outside use an SSH compatible client and the people on the LAN hit the shares from their Windows workstations. To keep permissions consistent, I am using the "force user" option in the smb.conf definitions for the shares so that everything gets assigned the correct rights and that works great on most of the shares I've created. There are two for which it does not work though. The users were created using the same script so I know there's nothing different about that process. If I enter a different user as the user to force it works fine. There's something about these two users that is different. I have double and triple-checked the configuration. I re-created one of the users. I have deleted and re-created the entry in the smb.conf file using a working example as a template which is how I stumbled upon the cause as I had forgotten to change the "force user =" line.
Below are two examples. The first one named Monet works. The second one named Picasso does not. I can SSH in to the server using either user and I am chrooted into my home directory.


[Monet]

comment = Access to the Monet FTP data
path = /userdata/home/9999993/monet
guest ok = no
browseable = yes
create mask = 0766
directory mask = 0766
read only = no
writable = yes
valid users = "@MyDomain+Domain Users"
force user = monet
admin users = AdminGuy
force group = GroupName

[Picasso]
comment = Access to the Picasso FTP data
path = /userdata/home/9999994/Picasso
guest ok = no
browseable = yes
create mask = 0766
directory mask = 0766
read only = no
writable = yes
valid users = "@MyDomain+Domain Users"
force user = Picasso
admin users = AdminGuy
force group = GroupName

From Windows, if I click on the Picasso share I get:

"\\sshserver\Picasso is not accessible. You might not have permission to use this network resource. Contact the administrator of this server to find out if you have access permissions."

"The user name could not be found."

Some caveats:
The files for these shares are actually located on a Windows server and mounted into the home directory of the user. That all works great and there is a good reason for it that I won't go into here.
The users are all Active Directory users that I have connected using Winbind.
If I go to a share I have defined above the one that's broken, I can descend into the Picasso directory without a problem.

Any ideas would be appreciated!

Thanks
 
Old 07-29-2016, 03:31 PM   #2
nini09
Senior Member
 
Registered: Apr 2009
Posts: 1,850

Rep: Reputation: 161Reputation: 161
Is Picasso user on Linux or Windows?
 
Old 08-18-2016, 01:19 PM   #3
freymish
LQ Newbie
 
Registered: Oct 2015
Location: Grand Rapids, MI
Distribution: Red Hat, Ubuntu, Debian
Posts: 5

Original Poster
Rep: Reputation: Disabled
Sorry about the delay.. Picasso is a Windows user. I can SSH into the server as that user so I know it's working as it should.
 
Old 08-18-2016, 02:08 PM   #4
freymish
LQ Newbie
 
Registered: Oct 2015
Location: Grand Rapids, MI
Distribution: Red Hat, Ubuntu, Debian
Posts: 5

Original Poster
Rep: Reputation: Disabled
I figured it out. As usual, it was simple, stupid error on my part. I created the account as Picasso but when I ran
Quote:
wbinfo -u | grep Pic
I go no result.

But,
Quote:
wbinfo -u | grep pic
did work. Winbind retrieves all the logins as lower case.

So
Quote:
force user = Picasso
was invoking a user that didn't exist.

I deleted and recreated the user as
Quote:
picasso
and that fixed the issue.

Spelling counts!

Last edited by freymish; 08-18-2016 at 02:09 PM.
 
  


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 and Active Directory: New Users unable to access shares, old users are fine Jelorian Linux - General 2 05-08-2014 06:35 PM
New Samba user can't access shares qwerty77 Linux - Server 3 08-02-2011 12:58 AM
Linux Client ADS-Authenticated User Can't Access Samba Shares lavie Linux - Software 1 09-12-2006 07:14 AM
No access to internet from Konsole, Konqueror works fine Tim.R Linux - Networking 2 06-07-2006 09:57 PM
Why Can't I Access Samba Shares Via As ADS User papaqube Linux - Software 1 05-09-2006 02:12 PM

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

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