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 07-17-2012, 09: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 09:29 AM.
 
Old 07-17-2012, 10: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, 05: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, 04: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, 01: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



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

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

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