Hi Marc,
Don't know about your locking issue, but afraid you're stuck on the root
thing; basically if samba sees that you are on the admin users list, your
UID is gonna be set to 0, like it or not. force user won't do you any good
(unless you are forcing a user who is NOT on the admin list), as the user
you are forcing to is STILL on the admin list, and your uid is STILL gonna
be 0. This hearkens back to the old unix adage - ya don't log on as root
unless ya need to do root stuff. IE,
have a normal logon where you do your work, and an admin users logon that
you use for admin stuff.
Hope this helps,
Don
"Reason, not volume, is the primary
differentiator between a discussion, and an
argument."
-----Original Message-----
From: Marc Harding [mailto:mharding@ecwebworks.com]
Sent: Thursday, May 03, 2001 9:46 AM
To: samba@lists.samba.org
Subject: locking files, and directory permissions.
since upgrading my system to samba 2.2.0 I am having a problem with my
logon script getting locked, so that when users log on, they are not
getting the proper drive mappings. I have attached the appropriate chunks
of my smb.conf.
Another problem I am having is that when I include my self as an admin
user, and save a file on my home drive, it saves it as root. is there a
way to force any files written to a home directory to be saved with the
permissions of the owner of that directory. I tried to use force user = %u
with no luck.
[global]
security = user
status = yes
workgroup = ECSAMBA
netbios name = SAMBA
server string = Linux Samba Server
encrypt passwords = Yes
update encrypted = Yes
min passwd length = 6
passwd program = /usr/bin/passwd %u
passwd chat = *password* %n\n *password* %n\n *successfull*
username map = /etc/smbusers
unix password sync = Yes
log level = 1
log file = /var/samba/logs/log.%m
admin users = root
add user script = /usr/sbin/adduser -n -g machines -c Machine -d
/dev/null -s /bin/false %m$
logon script = syslogon.bat
logon path = \\SAMBA\%U\conf\profile
logon drive = h:
logon home = \\SAMBA\%U
domain logons = Yes
os level = 65
preferred master = True
domain master = True
wins support = Yes
default service = homes
hosts allow = 192.168. 127.
guest account = nobody
share modes = no
show add printer wizard = Yes
printer admin = root
valid users = @users
hide local users = No
time server = yes
[homes]
comment = Home Directories
read only = No
create mask = 0770
directory mask = 0770
browseable = No
guest ok = no
[netlogon]
comment = Network Logon Service
path = /home/samba/netlogon
guest ok = no
locking = No
share modes = No
writeable = no
If I am missing any sections which could be useful, please let me
know. Thanks in advance....
Marc Harding
--
To unsubscribe from this list go to the following URL and read the
instructions: http://lists.samba.org/mailman/listinfo/samba