Interesting mount issue - Ubuntu

This is a discussion on Interesting mount issue - Ubuntu ; Trying to mount some samba shares to my linux client a temporary mount from the command line in the following format works real well mount -t cifs //zsrv-images/srv$ /media/image -o username="domain-name\admin",password=my-pwd,iocharset=utf8,file_mode=0777,dir_mode=0777 note that that the mount is done complying with ...

+ Reply to Thread
Results 1 to 4 of 4

Thread: Interesting mount issue

  1. Interesting mount issue

    Trying to mount some samba shares to my linux client
    a temporary mount from the command line in the following format works
    real well

    mount -t cifs //zsrv-images/srv$ /media/image -o
    username="domain-name\admin",password=my-pwd,iocharset=utf8,file_mode=0777,dir_mode=0777

    note that that the mount is done complying with windows login practice,
    which give me full rights to the mounted directory.
    Attempting the same with .smbcredentials fail
    username="domainame\admin"
    password=mypwd
    nothing mounts.

    It will only work
    username=admin
    password=mypwd
    And here I have only 90% of the permissions I need, I cannot overwrite
    files.

    Any thoughts?


    --
    :-)


  2. Re: Interesting mount issue

    Holz wrote:
    > mount -t cifs //zsrv-images/srv$ /media/image -o
    > username="domain-name\admin",password=my-pwd,iocharset=utf8,file_mode=0777,dir_mode=0777


    > Any thoughts?


    Haven't used .smbcredentials before, just curious. Are you using it to
    auto-mount this share using /etc/fstab? If so, what do you have in fstab?

    --
    As we enjoy great advantages from inventions of others, we should be
    glad of an opportunity to serve others by any invention of ours;
    and this we should do freely and generously.
    --Benjamin Franklin

  3. Re: Interesting mount issue

    On Sat, 16 Feb 2008 00:40:24 GMT
    johnny bobby bee wrote:

    > Holz wrote:
    > > mount -t cifs //zsrv-images/srv$ /media/image -o
    > > username="domain-name\admin",password=my-pwd,iocharset=utf8,file_mode=0777,dir_mode=0777

    >
    > > Any thoughts?

    >
    > Haven't used .smbcredentials before, just curious. Are you using it
    > to auto-mount this share using /etc/fstab? If so, what do you have in
    > fstab?
    >

    Johonny

    Yes, I use it to mount network shares. Rather then put my password in
    fstab, i use smbdredentials. My fstab line looks like this:

    //ip_address/sharename /media/mount_dir cifs
    credentials=/root/.smbcredentials,iocharset=utf8,file_mode=0777,dir_ mode=0777
    0 0
    --
    :-)


  4. Re: Interesting mount issue

    Holz wrote:
    > //ip_address/sharename /media/mount_dir cifs
    > credentials=/root/.smbcredentials,iocharset=utf8,file_mode=0777,dir_ mode=0777
    > 0 0


    Try using smbfs instead of cifs. And add ,rw to the end of the
    dir_mode=0777.

    I've also never seen the file_mode nor dir_mode options, how about trying:
    dmask=7777,fmask=7777,rw (instead of the file_mode=0777,dir_mode=0777)

    Man mount for more info.

    --
    As we enjoy great advantages from inventions of others, we should be
    glad of an opportunity to serve others by any invention of ours;
    and this we should do freely and generously.
    --Benjamin Franklin

+ Reply to Thread