View previous topic :: View next topic |
Author |
Message |
Voorhees51 Guru
Joined: 05 Nov 2003 Posts: 358
|
Posted: Tue Jun 22, 2004 5:39 am Post subject: samba file ownership |
|
|
I have a samba server running with write access. I have the share mounted in windows.
When i write to it it from windows it assigns the files as:
-rwxr--r-- nobody nobody <filename>
How do i change this to it assigns them to <mysuser>:users and be able to set the default permissions that it will assign the files
My smb.conf file looks like this:
# Global parameters
[global]
dos charset = UTF-8
workgroup = IASTATE
netbios name = GOKU
server string = ServerFiles
# interfaces = 192.168.0.1/24
min passwd length = 0
null passwords = Yes
log level = 1
log file = /var/log/samba/log.%m
max log size = 50
socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
printcap name = lpstat
dns proxy = No
ldap ssl = no
printing = cups
guest only = yes
security = share
hosts allow = 192.168.
[serverfiles]
comment = ServerFiles
path = /mnt/ServerFiles
writeable = yes
guest ok = yes
|
|
Back to top |
|
|
nizar Apprentice
Joined: 19 Dec 2003 Posts: 268 Location: localhost
|
Posted: Tue Jun 22, 2004 5:57 am Post subject: |
|
|
Code: |
create mask
directory mask
|
The nobody because you have .
You need to declare Code: | write list= user1 user2... | and set the and the |
|
Back to top |
|
|
Voorhees51 Guru
Joined: 05 Nov 2003 Posts: 358
|
Posted: Wed Jun 23, 2004 9:54 pm Post subject: |
|
|
I've got the permissions working now.
I am still having problems with the file ownership.
When I add write list = <myuser>
it will reconize it in windows, but it keeps prompting me for a username and password. What do I need to do to solve this problem?
Here is the relevant part of the smb.conf file
[serverfiles]
comment = ServerFiles
path = /mnt/ServerFiles
writeable = yes
write list = <myuser>
create mask = 644
|
|
Back to top |
|
|
|