Samba 2.0.7 problems (on RedHat 7.0)

Dimitrie Paun dimi at intelliware.ca
Wed Oct 31 14:36:05 GMT 2001


> From: Urban Widmark [mailto:urban at teststation.com]

> > Right. But I need it 'cause I need non-root users mount the thing...
> > Should not be a problem, right?
> 
> "user" does not give you that. Not with smbfs ... (look at the smbmnt 
> manpage, it's mostly correct except that the user needs to 
> own the dir)

I'm using mount(8) to mount the samba share. From the man page:

       (iii)  Normally, only the superuser can mount file systems.  However,
when fstab contains the user
       option on a line, then anybody can mount the corresponding system.

       Thus, given a line
              /dev/cdrom  /cd  iso9660  ro,user,noauto,unhide
       any user can mount the iso9660 file system found on his CDROM using
the command
              mount /dev/cdrom
       or
              mount /cd
       For more details, see fstab(5).  Only the user that mounted a
filesystem can unmount it again.  If
       any  user  should be able to unmount, then use users instead of user
in the fstab line.  The owner
       option is similar to the user option, with the restriction that the
user must be the owner of  the
       special  file.  This may be useful e.g. for /dev/fd if a login script
makes the console user owner
       of this device.

I tried to take it out, and sure enough, mount(8) refused to mount the
share. Is it better to use smbmnt instead?

Back to my problem, I still have it ;(. I've rerun the test with debug=4,
I've included all relevant info below. Any idea? Why didn't I get more info
in smbmount.log?

[cellbucksdev at vangogh cellbucks]$ ls -l /var/log/samba/smbmount.log
-rw-rw-rw-    1 root     root          692 Oct 31 16:41
/var/log/samba/smbmount.log
[cellbucksdev at vangogh cellbucks]$ cat /var/log/samba/smbmount.log
[2001/10/30 16:30:23, 0] client/smbmount.c:send_fs_socket(381)
  mount.smbfs: entering daemon mode for service \\intranet\DBS_D, pid=706
[2001/10/30 16:44:57, 0] client/smbmount.c:send_fs_socket(381)
  mount.smbfs: entering daemon mode for service \\intranet\DBS_D, pid=1441
[2001/10/31 11:43:20, 0] client/smbmount.c:send_fs_socket(381)
  mount.smbfs: entering daemon mode for service \\intranet\DBS_D, pid=15679
[2001/10/31 16:18:19, 0] client/smbmount.c:send_fs_socket(381)
  mount.smbfs: entering daemon mode for service \\intranet\DBS_D, pid=16615
[2001/10/31 16:41:25, 0] client/smbmount.c:send_fs_socket(381)
  mount.smbfs: entering daemon mode for service \\intranet\DBS_D, pid=17395
[cellbucksdev at vangogh cellbucks]$ cat /etc/fstab
LABEL=/                 /                       ext3    defaults        1 1
LABEL=/boot             /boot                   ext3    defaults        1 2
/dev/cdrom              /mnt/cdrom              iso9660 noauto,owner,ro 0 0
/dev/fd0                /mnt/floppy             auto    noauto,owner    0 0
LABEL=/tmp              /tmp                    ext3    defaults        1 2
LABEL=/usr              /usr                    ext3    defaults        1 2
LABEL=/var              /var                    ext3    defaults        1 2
none                    /proc                   proc    defaults        0 0
none                    /dev/shm                tmpfs   defaults        0 0
none                    /dev/pts                devpts  gid=5,mode=620  0 0
/dev/sda8               swap                    swap    defaults        0 0
/dev/sda2               /home                   ext3    defaults        1 2
//intranet/DBS_D        /mnt/intranet           smbfs
user,username=cellbucksdev,password=in4mation,debug=4       0 0
[cellbucksdev at vangogh cellbucks]$ dmesg | tail -40
  Mem:0xfe900000  IRQ:16  Speed:100 Mbps  Dx:Full
  Hardware receive checksums enabled
smbfs: Unrecognized mount option noexec
smbfs: Unrecognized mount option noexec
smbfs: Unrecognized mount option noexec
smbfs: Unrecognized mount option noexec
smbfs: Unrecognized mount option noexec
smb_trans2_request: result=-104, setting invalid
smb_lookup: find //My Documents failed, error=-5
smb_lookup: find //My Documents failed, error=-5
smb_lookup: find //My Documents failed, error=-5
smb_lookup: find //My Documents failed, error=-5
smb_lookup: find //My Documents failed, error=-5
smbfs: Unrecognized mount option noexec
smb_trans2_request: result=-104, setting invalid
smb_lookup: find //My Documents failed, error=-5
smb_lookup: find //My Documents failed, error=-5
smb_lookup: find //My Documents failed, error=-5
smbfs: Unrecognized mount option noexec
smb_trans2_request: result=-104, setting invalid
smb_lookup: find //My Documents failed, error=-5
smb_lookup: find //My Documents failed, error=-5
smb_lookup: find //My Documents failed, error=-5
smbfs: Unrecognized mount option noexec
smb_trans2_request: result=-104, setting invalid
smb_lookup: find //My Documents failed, error=-5
smb_lookup: find //My Documents failed, error=-5
smb_lookup: find //My Documents failed, error=-5
smbfs: Unrecognized mount option noexec
smb_trans2_request: result=-104, setting invalid
smb_retry: successful, new pid=15679, generation=2
smbfs: Unrecognized mount option noexec
smb_trans2_request: result=-104, setting invalid
smb_retry: successful, new pid=15995, generation=2
smbfs: Unrecognized mount option noexec
smbfs: Unrecognized mount option noexec
smb_trans2_request: result=-104, setting invalid
smb_lookup: find //My Documents failed, error=-5
smb_lookup: find //My Documents failed, error=-5
smb_lookup: find //My Documents failed, error=-5


TIA,
Dimi.




More information about the samba mailing list