[Samba] UNIX paths vs UNC names in [profile]

Jeff Gardiner gardiner at imaging.robarts.ca
Mon Nov 17 16:42:18 GMT 2003


Alright, I can be a bit thick sometimes, but by RTFM or other documentation 
I've solved a problem.

ISSUE

I had been having problems with profiles, I use using the following profile:
<edited>

[global]
preferred master = yes
domain master = yes
local master = yes
security = user
domain logons = yes
logon path = \\%N\%u\profiles
logon drive = H:
logon home = \\%L\%U
logon script = startup.bat

 [netlogon]

path = /var/lib/samba/netlogon
read only = yes
write list = ntadmin

[profiles]

path = \\%N\%U\profile
read only = no
create mask = 0600
directory mask = 0700

Then, and after much frustration, I came across John, Terpstra's email:
http://www.mail-archive.com/samba@lists.samba.org/msg26709.html

John clearly says "Samba share specs read UNIX paths - not Windows UNC names." 
(Thanks John)

Ok that was the issue then - yet it seemed to work.

QUESTION
My question therefore is this - I have multiple /home/subdomain directories, 
like
/home/disk1
/home/disk2
/home/backupdisk3b  ... etc

How do I store the profile in the users home dir.  My rationale is that as all 
of my OSX users, and Unix/Linux users have to adhere to a quota - I'd rather 
force my windows users to adhere to the same quota by storing their profile 
in /home/disk?/user/profile and I could do that using \\%L\%U\profile.  Now 
one solution is to apply the quote to say /var/lib/samba/profile/%U but I'd 
rather keep the profile in or off of the home dir anyway.

resolving /home/disk?/user/profil using Unix path names is difficult because I 
have so many disks with home dirs.

BTW I've tried:
path = ~%U/profile

hoping that ~user would resolve correctly. It didn't seem to work.

Cheers
Jeff

-- 
Jeff Gardiner [ gardiner at nospam.imaging.robarts.ca ]
System Administrator - Imaging Research Laboratories
Robarts Research Institute - London ON, Canada
519.663.5777 x34089

       ~~~~~~~
  Those who do not understand Unix are condemned to reinvent it, poorly.
        -- Henry Spencer
~~~~~~




More information about the samba mailing list