LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
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-21-2008, 02:05 AM   #1
checkmate3001
Member
 
Registered: Sep 2007
Location: Folsom, California
Distribution: Debian 4.0 (Etch), Debian 5.0 (Lenny), Ubuntu 8.04
Posts: 301

Rep: Reputation: 32
samba roaming profiles directory owner and permissions


Hello all!

I'm having a problem with my profiles share that is related to permissions.
Windows can't store any profiles to it because access is not granted.

My profiles share is (2775):
drwxrwsr-x 3 root users 4096 2008-07-20 23:42 profiles


I can set my profiles share to 777 (full permission for everyone) but I don't want that.

I believe it should be set to 775 (samba.org doc says 2775 ... sticky bit?).

So what is the issue? Is it ownership? Is it groups?

When I set the permissions of the profiles directory to 777 the created files and directories are owned by <username> and group <username>.

Any pointers?
 
Old 07-22-2008, 02:54 PM   #2
Disillusionist
Senior Member
 
Registered: Aug 2004
Location: England
Distribution: Ubuntu
Posts: 1,013

Rep: Reputation: 83
This is setting the SGID not the sticky bit.

Permissions of 2775 should work (as per the Samba documentation)

As this isn't working you could use 2777, this would set a group of "users", but follow the umask settings that the user has (typically 0022 which creates files of -rw-r--r-- and directories of drwxr-xr-x)
 
Old 07-26-2008, 03:00 PM   #3
checkmate3001
Member
 
Registered: Sep 2007
Location: Folsom, California
Distribution: Debian 4.0 (Etch), Debian 5.0 (Lenny), Ubuntu 8.04
Posts: 301

Original Poster
Rep: Reputation: 32
Thank you

Thank you for clearing that up a little bit.

I think it was actually a Windows problem. I wasn't rebooting windows - just logging out and logging back in. So it wasn't refreshing the permissions? That's my only guess.

After rebooting it seemed to work fine. I think I might not use Profiles in the long run just to speed up logging in and in the final application the users don't change computers at all. So there is really no benefit.

I do wonder, however, it there a way to make it so only certain users (ie: Administrator) uses roaming profiles, but everyone else doesn't? I kind of doubt it - but that would be a nice feature. I could only allow the Admin permission to use the directory, but then windows would complain about not being able to find a roaming profile... using local one instead... blah... blah...


Thanks again!
 
Old 07-27-2008, 02:36 AM   #4
Disillusionist
Senior Member
 
Registered: Aug 2004
Location: England
Distribution: Ubuntu
Posts: 1,013

Rep: Reputation: 83
How were you setting roaming profiles?

Options are:
  1. the Users and Computers snapin for each user
  2. using group policy

Normally in Active Directory, you would have a seperate container for Administrative Accounts. I typically advise not setting group policy on the default "Administrators" container as this might cause problems that you haven't considered.

Assuming (always dangerous) that there aren't losts of Administrative Accounts, you could:
  1. open the properties of each administrator via the Users and Computers mmc snapin
  2. open the Profile tab
  3. Enter \\server\share\%USERNAME%
The variable %USERNAME% will expand to the user account, this saves typing as you can highlight, copy, and paste into all the relevant areas.

If you use either Citrix or Remote Desktop (RDC) then I would suggest you set a seperate area to store Terminal Service Profiles.

Hope this helps.

Last edited by Disillusionist; 07-27-2008 at 02:37 AM. Reason: removed typos
 
Old 08-14-2008, 06:22 AM   #5
hilljockey
LQ Newbie
 
Registered: Jun 2006
Posts: 10

Rep: Reputation: 0
Hello,

I've upgraded our SME server from 7.2 to 7.3 while logged on via my roaming profile.

Next logon the profile was not found. Further investigation showed it still to be there in /home/e-smith/files/samba/profiles/ but the ownership and group had both changed to rpminstall.

I cannot change ownership back to myself with chown even though logged on as root.

How do I fix this? (my Linux knowledge is limited, sorry).
 
  


Reply

Tags
group, owner, permissions, profiles, samba, share


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
Samba Roaming Profiles SBN Linux - Server 3 12-04-2007 02:07 AM
Samba With Roaming Profiles blackfish Linux - Server 1 03-31-2007 04:05 PM
samba, roaming profiles help. mehesque Linux - Networking 0 05-03-2004 08:07 PM
Samba roaming profiles absco Linux - Networking 1 08-25-2003 10:44 AM
samba pdc without roaming profiles 2 hsa Linux - General 4 05-13-2003 08:43 AM


All times are GMT -5. The time now is 04:36 PM.

Main Menu
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