Find the answer to your Linux question:
Results 1 to 3 of 3
I'm able to mount/unmount the C-Drive of my Win2K box "Prininsl-nb" manually by: peter@baer:~> smbmount //Prininsl-nb/C$ /home/peter/nb-c -o credentials=/home/peter/.smbpasswd,uid=peter,gid=users WARNING: The "printer admin" option is deprecated peter@baer:~> mount <...> //Prininsl-nb/C$ ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Apr 2005
    Posts
    5

    Mounting an SMB drive works manually, but not via /etc/fstab


    I'm able to mount/unmount the C-Drive of my Win2K box "Prininsl-nb" manually by:

    peter@baer:~> smbmount //Prininsl-nb/C$ /home/peter/nb-c -o credentials=/home/peter/.smbpasswd,uid=peter,gid=users
    WARNING: The "printer admin" option is deprecated
    peter@baer:~> mount
    <...>
    //Prininsl-nb/C$ on /home/peter/nb-c type smbfs (0)
    peter@baer:~> smbumount nb-c
    peter@baer:~>

    Trying the same via /etc/fstab doesn't work:
    peter@baer:~> cat /etc/fstab
    <...>
    //Prininsl-nb/D$ /home/peter/nb-d smbfs credentials=/home/peter/.smbpasswd,uid=peter,gid=users,user,rw 0 0
    peter@baer:~> cat .smbpasswd
    username=<username on Win2K box>
    password=<password on Win2K box>
    peter@baer:~> mount nb-d
    WARNING: The "printer admin" option is deprecated
    mount error: Invalid argument
    Please refer to the smbmnt(8) manual page
    smbmnt failed: 255
    peter@baer:~>

    I have a samba server running on my linux box. So I'm able to connect from my Win2K box (now working as smbclient) to my linux box (as smb server). My smb.conf (don't know if it has something to do with the problem) is:

    peter@baer:~> cat /etc/samba/smb.conf
    # version at /usr/share/doc/packages/samba/examples/smb.conf.SUSE
    # Date: 2004-10-05
    [global]
    workgroup = PLZ-HAMBURG
    printing = cups
    printcap name = cups
    printcap cache time = 750
    cups options = raw
    printer admin = @ntadmin, root, administrator
    username map = /etc/samba/smbusers
    map to guest = Bad User
    include = /etc/samba/dhcp.conf
    logon path = \\%L\profiles\.msprofile
    logon home = \\%L\%U\.9xprofile
    logon drive = P:
    security = user
    add machine script = /usr/sbin/useradd -c Machine -d /var/lib/nobody -s /bin/false %m$
    domain logons = Yes
    domain master = Yes
    passdb backend = smbpasswd
    netbios name = baer
    idmap gid = 10000-20000
    idmap uid = 10000-20000
    local master = Yes
    os level = 65
    preferred master = Yes

    [homes]
    comment = Home Directories
    valid users = %S
    browseable = No
    read only = No
    inherit acls = Yes

    [profiles]
    comment = Network Profiles Service
    path = %H
    read only = No
    store dos attributes = Yes
    create mask = 0600
    directory mask = 0700

    [users]
    comment = All users
    path = /home
    read only = No
    inherit acls = Yes
    veto files = /aquota.user/groups/shares/

    [groups]
    comment = All groups
    path = /home/groups
    read only = No
    inherit acls = Yes

    [pdf]
    comment = PDF creator
    path = /var/tmp
    printable = Yes
    print command = /usr/bin/smbprngenpdf -J '%J' -c %c -s %s -u '%u' -z %z
    create mask = 0600

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

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

    [netlogon]
    comment = Network Logon Service
    path = /var/lib/samba/netlogon
    write list = root

    [prininsl]
    comment = Home prininsl
    path = /home/prininsl
    read only = No
    create mask = 0644
    valid users = prininsl
    peter@baer:~>

  2. #2
    Linux Guru lakerdonald's Avatar
    Join Date
    Jun 2004
    Location
    St. Petersburg, FL
    Posts
    5,035
    This seems to be a known bug with SuSe. It seems to be hit or miss, but other people, according to google, have the same problem.
    Try searching/reporting the bug upstream.

  3. #3
    omc
    omc is offline
    Just Joined!
    Join Date
    Aug 2006
    Posts
    4

    A wild guess

    I don't remember having seen the "user" option for smbmount...Are you sure you didn't mean to put there "guest"?

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •