[Samba] File permission problem

2005-09-09 Thread fluibgwef
Hi Mogens, 
I'll try more during the week-end but I am sorry all this is not very clear to 
me (not your fault). 
And I cannot reply directly to the news group, I have to go to the crappy 
netscape mail thing to send this... 

Anyway, see below. 

Thanks again, 
Dominique 
Mogens Kjaer wrote:
> [EMAIL PROTECTED] wrote:
> 
> ... chaotic quote removed ...
> 
Well it is chaotic because I like to answer inline but OK ;-)

> testparm lists section [data1], [data2], and [data3], but
> they are not listed under services definitions?
see below 
> 
> How many users do you actually have? Do you have
> any files under /home/user1, /home/user2, etc. for
> these users?
currently: 1 active user: myself (uid 500) , the login which I use for samba 
and for the linux box itself to work on it. One inactive user (my wife ;-) uid 
501) In the future I want more users (my kids are getting bigger :-). I have a 
"users" group (gid 100? I suppose). 
But I want to share the /data1 etc. only with 1 user (me), this is more 
important and immediately urgent than the homes directory. 
> 
> If the owner of these files are not set correctly,
> you should find the uid and gid in the /etc/passwd
> file for these users and do a:
> 
> chown -R uid1.gid1 /home/user1
> 

Thank you, but what about the /data1,2,3 ? by whom should they be owned and in 
which group should they be for all this to work? This I don't understand. 

> I guess that swat has changed the global settings
> for create and directory mask, but you still have
> to change the settings for the [homes] section.
swat did not change much - or I use it wrongly. 


the real testparm output, I forgot some parts before: 

p1g:/ # testparm
Load smb config files from /etc/samba/smb.conf
Processing section "[homes]"
Processing section "[printers]"
Processing section "[print$]"
Processing section "[data1]"
Processing section "[data2]"
Processing section "[data3]"
Processing section "[fun_data]"
Loaded services file OK.
Server role: ROLE_STANDALONE
Press enter to see a dump of your service definitions

# Global parameters
[global]
workgroup = HOME
netbios name = 
server string = xxx
interfaces = x
update encrypted = Yes
map to guest = Bad Password
guest account = ftp
log level = 2
log file = /var/log/samba/client_log.%m
max log size = 500
debug hires timestamp = Yes
time server = Yes
socket options = SO_KEEPALIVE IPTOS_LOWDELAY TCP_NODELAY
os level = 1
local master = No
domain master = No
wins support = Yes
ldap suffix = dc=example,dc=com
ldap ssl = no
template homedir = /home/%U
admin users = acl
create mask = 0777
directory mask = 0777
veto files = /*.eml/*.nws/riched20.dll/*.{*}/

[homes]
comment = Home Directories
path = /home/%u
valid users = %S
read only = No
create mask = 0640
directory mask = 0750

[printers]
comment = All Printers
path = /var/tmp
create mask = 0600
printable = Yes
browseable = No

[print$]
comment = Printer Drivers
path = /var/lib/samba/drivers
write list = @ntadmin, root
force group = ntadmin
create mask = 0664
directory mask = 0775

[data1]
comment = data55GB
path = /data1

[data2]
comment = data19GB
path = /data2

[data3]
comment = data116GB
path = /data3
create mask = 0775
directory mask = 0775

[fun_data]
comment = fun_data92GB
path = /usr/rem_data1/
create mask = 0775




__
Switch to Netscape Internet Service.
As low as $9.95 a month -- Sign up today at http://isp.netscape.com/register

Netscape. Just the Net You Need.

New! Netscape Toolbar for Internet Explorer
Search from anywhere on the Web and block those annoying pop-ups.
Download now at http://channels.netscape.com/ns/search/install.jsp
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/listinfo/samba


[Samba] File permission problems

2005-09-09 Thread fluibgwef
Thanks Mogens for your response: 
My answers below. 


Have you moved the files and users from the old server?
==> no I transferred the physical disk. Normally the users are transferred too 
but this machine is just used as a server for my business and family data and I 
don't use it very much locally. Not only the homes are to be exported but also 
3 disks /data1 to 3. 

Are the owner of the home directories the one you would expect, i.e.
does the user xyz own the directory /home/xyz:
ls -ld /home/xyz
(replace xyz with some real owners).
==> the ownership of the /data1 /data2 /data3 and home/xxx directories is to 
root root 
that might be it? 
How do I change it (sorry newcomer's question) I know there is chown and chgrp 
but how do you apply them in this case?


What does the command testparm write?
==> testparm output below (thanks for reminding me, I haven't touched samba for 
2 yrs...)
How come that the permission masks are not set to all 0777 as I supposedly 
changed them from swat? swat does not seem very reliable???

-
p1g:/ # testparm
Load smb config files from /etc/samba/smb.conf
Processing section "[homes]"
Processing section "[printers]"
Processing section "[print$]"
Processing section "[data1]"
Processing section "[data2]"
Processing section "[data3]"
Processing section "[fun_data]"
Loaded services file OK.
Server role: ROLE_STANDALONE
Press enter to see a dump of your service definitions

# Global parameters
[global]
workgroup = HOME
netbios name = xx
server string = x
interfaces = x0
update encrypted = Yes
map to guest = Bad Password
guest account = ftp
log level = 2
log file = /var/log/samba/client_log.%m
max log size = 500
debug hires timestamp = Yes
time server = Yes
socket options = SO_KEEPALIVE IPTOS_LOWDELAY TCP_NODELAY
os level = 1
local master = No
domain master = No
wins support = Yes
ldap suffix = dc=example,dc=com
ldap ssl = no
template homedir = /home/%U
admin users = acl
create mask = 0777
directory mask = 0777
veto files = /*.eml/*.nws/riched20.dll/*.{*}/

[homes]
comment = Home Directories
path = /home/%u
valid users = %S
read only = No
create mask = 0640
directory mask = 0750

[printers]
comment = All Printers
path = /var/tmp
create mask = 0600
printable = Yes




__
Switch to Netscape Internet Service.
As low as $9.95 a month -- Sign up today at http://isp.netscape.com/register

Netscape. Just the Net You Need.

New! Netscape Toolbar for Internet Explorer
Search from anywhere on the Web and block those annoying pop-ups.
Download now at http://channels.netscape.com/ns/search/install.jsp
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/listinfo/samba


[Samba] file permission problems

2005-09-09 Thread fluibgwef
Hi knowledgeable samba users,  
I had to upgrade from samba 2.2.0 on a suse linux server (7.2). Server died 
after two 2+ years of loyal services  - otherwise I would not have changed...
Now I have a samba 3.0.9-2.6 on suse 9.1. I can access the files only r-x, i.e. 
all files appear as read only.
Trying to trouble shoot I have:
- chmod-ed all the files of all the shares to 777
- in swat put the masks to 777 in the "global section"
- in swat put the masks to 777 in all the shares
It is a home office environment where I access the SMB server from XP and W2K 
stations.
Is there anywhere else I should look at?
thanks in advance,
Dominique 

__
Switch to Netscape Internet Service.
As low as $9.95 a month -- Sign up today at http://isp.netscape.com/register

Netscape. Just the Net You Need.

New! Netscape Toolbar for Internet Explorer
Search from anywhere on the Web and block those annoying pop-ups.
Download now at http://channels.netscape.com/ns/search/install.jsp
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/listinfo/samba


[Samba] File permission problems

2005-09-09 Thread fluibgwef
Hi knowledgeable samba users,  
I had to upgrade from samba 2.2.0 on a suse linux server (7.2). Server died 
after two 2+ years of loyal services  - otherwise I would not have changed...
Now I have a samba 3.0.9-2.6 on suse 9.1. I can access the files only r-x, i.e. 
all files appear as read only. 
Trying to trouble shoot I have: 
- chmod-ed all the files of all the shares to 777
- in swat put the masks to 777 in the "global section"
- in swat put the masks to 777 in all the shares
It is a home office environment where I access the SMB server from XP and W2K 
stations. 
Is there anywhere else I should look at? 
thanks in advance, 
Dominique 

__
Switch to Netscape Internet Service.
As low as $9.95 a month -- Sign up today at http://isp.netscape.com/register

Netscape. Just the Net You Need.

New! Netscape Toolbar for Internet Explorer
Search from anywhere on the Web and block those annoying pop-ups.
Download now at http://channels.netscape.com/ns/search/install.jsp
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/listinfo/samba