LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 07-17-2012, 10:23 AM   #1
Abbaddon
Member
 
Registered: Aug 2004
Location: Guam
Distribution: Ubuntu, Gentoo
Posts: 45

Rep: Reputation: 15
Question Samba admin user setup.


I'm running webmin with Samba.

I'm trying trying to add an admin user that has access to all home directories, ie user accounts.

I had tried with a sym link, and while I can see all the folders. I can't access them.

Any help is much appreciated.

Edit: Running Centos 6.2 x64

Here's my smb.conf


follow symlinks = yes
wide links = yes
unix extensions = no

[allusers]
comment = All Users
path = /home/shares/allusers
valid users = @users
force group = users
create mask = 0660
directory mask = 0771
writable = yes
public = yes
[homes]
comment = Home Directories
browseable = yes
valid users = %S
public = yes
writable = yes
create mask = 0700
directory mask = 0700
smb ports=445

[Admin]
comment = Top level
valid users = user1,user2,user3
user = user2
path = /home
write list = user2,@root

Last edited by Abbaddon; 07-17-2012 at 10:29 AM.
 
Old 07-17-2012, 11:56 AM   #2
hiero2
LQ Newbie
 
Registered: May 2010
Posts: 26

Rep: Reputation: 2
I suggest you check the group rights for your admin user. If it is a rights issue, the admin user will need rights to the home directories. This would be typical only for root. So you need to make your admin user a member of some group, and then make sure the directories allow that group full rights.

Another possibility is a problem I have had in the past. My server has the home directories on a different drive. On top of that I had to add space, and stuck a new drive in that enters the tree in the primary user directory. There are times and circumstances when I cannot use the files on the 2nd hdd, but the loss of functionality is limited. What I see is an inability to copy files from one partition to another by a user who is not on the server itself. I have seen this both in ssh and samba - but my point is your problem may be more esoteric then just rights.
 
Old 07-18-2012, 06:56 AM   #3
Abbaddon
Member
 
Registered: Aug 2004
Location: Guam
Distribution: Ubuntu, Gentoo
Posts: 45

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by hiero2 View Post
I suggest you check the group rights for your admin user. If it is a rights issue, the admin user will need rights to the home directories. This would be typical only for root. So you need to make your admin user a member of some group, and then make sure the directories allow that group full rights.

Another possibility is a problem I have had in the past. My server has the home directories on a different drive. On top of that I had to add space, and stuck a new drive in that enters the tree in the primary user directory. There are times and circumstances when I cannot use the files on the 2nd hdd, but the loss of functionality is limited. What I see is an inability to copy files from one partition to another by a user who is not on the server itself. I have seen this both in ssh and samba - but my point is your problem may be more esoteric then just rights.
Thank you for you response. Does the user root belong to a group? Sounds like I would simply need to add the admin user to that group?
 
Old 07-18-2012, 05:26 PM   #4
hiero2
LQ Newbie
 
Registered: May 2010
Posts: 26

Rep: Reputation: 2
The user root belongs to several groups. And, actually, when you are running as root I would think you should be able to exactly as you wish - access everything. However, if you are running as your normal self, and you "su" into root, and then try to put links on your desktop, they will not work. If you log in as root to root's desktop, then you could do put links on the desktop or bookmarks in the file manager. Or, you should be able to. You would also have to connect to the samba shares as root, I think. I'm not sure, but I think you would have to add root to the samba-users database.

That might be considered a security risk, so you would probably be better off creating a special admin user, and giving them the appropriate rights.
 
Old 07-20-2012, 02:47 AM   #5
Abbaddon
Member
 
Registered: Aug 2004
Location: Guam
Distribution: Ubuntu, Gentoo
Posts: 45

Original Poster
Rep: Reputation: 15
Actually, I got it to work by making the following changes to my smb.conf

[global]
admin users = root, smbadmin, user1, user2, user3
security = user
 
  


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
LINUX SAMBA SERVER - Temporary domain admin rights for network windows client user. jcdole Linux - Server 0 01-07-2008 03:44 PM
User admin and N/w admin on Gnome hangs ssrini *BSD 2 07-28-2005 08:55 AM
rh8 to xp non-root user setup via samba johnli2 Linux - Networking 2 05-31-2005 08:32 AM
Linux PDC - How Do I give the Samba User Local Admin Rights on XP machine? Vince0000 Linux - Networking 4 12-18-2003 03:54 AM
how to setup samba user acct. dkc_ace Linux - Software 0 01-07-2003 06:17 PM


All times are GMT -5. The time now is 06:06 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration