Re: [Samba] Cannot write over root owned file

2006-05-04 Thread Larry Alkoff
david rankin wrote: From: "Larry Alkoff" <[EMAIL PROTECTED]> david rankin wrote: From: "Larry Alkoff" <[EMAIL PROTECTED]> david rankin wrote: From: "Larry Alkoff" <[EMAIL PROTECTED]> If you have security = share it looks to me like everyone would see the samba icon but could not access it

Re: [Samba] Cannot write over root owned file

2006-05-04 Thread david rankin
From: "Larry Alkoff" <[EMAIL PROTECTED]> david rankin wrote: From: "Larry Alkoff" <[EMAIL PROTECTED]> david rankin wrote: From: "Larry Alkoff" <[EMAIL PROTECTED]> If you have security = share it looks to me like everyone would see the samba icon but could not access it since they didn't ha

Re: [Samba] Cannot write over root owned file

2006-05-03 Thread Larry Alkoff
david rankin wrote: From: "Larry Alkoff" <[EMAIL PROTECTED]> david rankin wrote: From: "Larry Alkoff" <[EMAIL PROTECTED]> Which leads to the question, how do I act as root on a samba share? Or perhaps the question is how do I become root on the share? Is sharing as root okay or is it bad pra

Re: [Samba] Cannot write over root owned file

2006-05-03 Thread david rankin
From: "Larry Alkoff" <[EMAIL PROTECTED]> david rankin wrote: From: "Larry Alkoff" <[EMAIL PROTECTED]> Which leads to the question, how do I act as root on a samba share? Or perhaps the question is how do I become root on the share? Is sharing as root okay or is it bad practice? Why? Larry

Re: [Samba] Cannot write over root owned file

2006-05-03 Thread Adam Williams
in smb.conf have you tried force user = root -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba

Re: [Samba] Cannot write over root owned file

2006-05-03 Thread Larry Alkoff
david rankin wrote: From: "Larry Alkoff" <[EMAIL PROTECTED]> However, when I tried to copy over a root owned file, first as su and then as su -, the operation failed. Why can't I copy over a root owned file when I'm root? I also noticed that, when I touched as su or su -, I could create the

Re: [Samba] Cannot write over root owned file

2006-05-03 Thread david rankin
From: "Larry Alkoff" <[EMAIL PROTECTED]> However, when I tried to copy over a root owned file, first as su and then as su -, the operation failed. Why can't I copy over a root owned file when I'm root? I also noticed that, when I touched as su or su -, I could create the file but in each cas

Re: [Samba] Cannot write over root owned file

2006-05-02 Thread Adam Nielsen
> I found out the new file created by your touch command was owned by > lba:users. That was expected since I was in a shell as user lba. > However, when I tried to copy over a root owned file, first as su and > then as su -, the operation failed. Why can't I copy over a root > owned file when I

Re: [Samba] Cannot write over root owned file

2006-05-02 Thread Larry Alkoff
Adam Nielsen wrote: Is there something built-in to Samba to prevent root overwriting a file? Unless you have "invalid users = root" there shouldn't be a problem. I saw that option but _want_ to be able to be root on my Samba shares. It's a single operator machine. Try creating a file instead

Re: [Samba] Cannot write over root owned file

2006-05-02 Thread Adam Nielsen
> Is there something built-in to Samba to prevent root overwriting a > file? Unless you have "invalid users = root" there shouldn't be a problem. Try creating a file instead: $ touch /mnt/tillie/tmp/test.txt And then see who owns the file - it should be root (if you're connected as root) but I

[Samba] Cannot write over root owned file

2006-05-02 Thread Larry Alkoff
I mount another Linux machine with: smbmount tillie/all /mnt/tillie -o uid=0 Trying to copy a root owned to file after either su or su - fails with: cp: cannot create regular file `/mnt/tillie/usr/local/bin/smbmt': Permission denied Since I have root priviledges why does this happen? The file