I'm experiencing two problems with the samba package: After a smbmount command successfully mounts a volume, several hours later I get I/O problems. When you cd into the dir and do an ls you get an error. When you df it hangs at the smb mounts. The other problem is when I try a smbumount as a regular user on a mount that I mounted as that same user. The error: You are not allowed to umount /home/jo2y/mnt smbumount is setuid: -rwsr-sr-x 1 root root 243249 Feb 10 17:28 /usr/bin/smbumount I tried the best I could to search for these problems on the website and in the mailing archives but no luck. I freshly compiled these against linux 2.2.1-ac5 and I'm using the samba 2.0.2 source. What other information do you need? thanks -james
James O'Kane <jo2y@jprc.com> wrote:> I'm experiencing two problems with the samba package: > > After a smbmount command successfully mounts a volume, several hours later > I get I/O problems. When you cd into the dir and do an ls you get an > error. When you df it hangs at the smb mounts. > > The other problem is when I try a smbumount as a regular user on a mount > that I mounted as that same user. The error: > You are not allowed to umount /home/jo2y/mnt > smbumount is setuid: > -rwsr-sr-x 1 root root 243249 Feb 10 17:28 /usr/bin/smbumount > > I tried the best I could to search for these problems on the website and > in the mailing archives but no luck. > > I freshly compiled these against linux 2.2.1-ac5 and I'm using the samba > 2.0.2 source. > > What other information do you need? > thanks > -jamesHi, I have also similar problems with smbmount. After upgrading my linux machine from SuSe 5.1 to 6.0, the command smbmount //imperia/muenzer /home/hajo/imperia -U muenzer -u hajo -g users is still working, but the share is mounted only with root-permissions, not with hajo.users permissions. Also the smbumount is not working even as root, in the same way than J. O'Kane wrote. On the other hand a normal umount as root is working. My former samba-version was 1.9.17p2-3, now it is 1.9.18p10-17. imperia is also a linux-box with samba, but with an older version. Any ideas? thanks, hajo.
Hi, Im sorry, but in my last email, there was something wrong: the share is not mounted with root-permissions as I told, but with hajo.root as owner. The mounting directory has the permissions d--------- like all subdirectories, files in this directories has ---xr--r--. hajo.
When the world was young, Eric_Songer@urscorp.com carved some runes like this:> Some of my users regularly use our sun and their win(whatever) > clients. When they create files or directories under solaris the > permissions are the way I want them, but when they create files or folders > with win95/NT the permissions are not what I want. I put create mask > 0775 in the smb.conf thinking that would solve my problem, but it errors > off with the badly formed line error.I haven't tried 2.x yet (so there may something new that's causing the behavior you're seeing) but it seems to work fine on RH42 (kernel 2.0.30) and RH52 (kernel 2.0.36) with samba 1.9.18p8 and 1.9.18p10. The other thing is that RedHat uses the user-private- group scheme, which is supposed to be somewhat unusual (I wouldn't know as I've never administered anything else). Here's the deal: All users under RH are given their own group (to which only they belong) as their primary group. So by default, only they can mod their own files/dirs (unless permissions are changed to allow world mods). Also, the default umask is 002 under this scheme instead of 022. If you set the SGID bit on a directory, files created there will have their group set to the directory's group (and the sticky will determine whether users in that group can edit each other's files or not - I think). On both my samba/RH boxes, I just make a group, add users to it, make the directory tree owned by that group, and it works (without the create mask, etc). You should be able to make it work too using a combination of user/group permissions and the samba settings (create mask, directory mask, force group/user, etc). All I can tell you is that I can create files on a samba share from both the linux host and the windoze clients with exactly the same permissions. But I've never seen that error before... And I do a great Homer - Doh! Hope this helps, Steve ****************************************************************** Stephen L Arnold http://www.rain.org/~sarnold General Protection Fault: (A)bort, (R)etry, (F)lush OS.