I have a homeserver running with Debian Lenny.
The problem I am fighting with is a problem with my file- permissions.
There are two users and one group these users belong to.

Sometimes one of the two users is writing data to my networkdrive and sets the permissions for himself only.
So i have to use chmod -R 770 to make it group-usable again :/
Most of the time there is no problem.

The users owning the main folder are flopc and flontb. The group is called losrootos.
After creating the folders I used chown -R root:losrootos and chmod -R 770.
The two clients accessing the Fileserver are both windows7 machines (if that should be of concern)

The most weird thing happened yesterday. I used windows 7 System backup to create an image. Since it took
a long time i canceled it. When trying to delete i get the message "you need the file permissions from flontb"
And guess what ? Yes, the user logged on (the one creating the image) is: flontb...

I already posted the question in a german forum tellin me i shall take a look at the FAQ of the Samba team
- which i did. I also do not assume a well known book should have a trouble making tutorial.

I hope you can have some use of the testparm- output and the smb.conf i attached below.



My smb.conf

[global]
workroup = Skynet2
security = user
encrypt passwords = true


# you may want to add the following on a linux system for speedup

# SO_RCVBUF=8192 SO_SNDBUF=8192
# socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192


[losrootos]
path =/home/shares/losrootos
comment= los Filmos, Musikos, Pron0s

read only = no
guest ok = no
create mask= 0770
directory mask= 0770
browseable= Yes


Testparm:

[global]

[losrootos]
comment = los Filmos, Musikos
path = /home/shares/losrootos
read only = No
create mask = 0770
directory mask = 0770