Results 1 to 10 of 1362

Thread: Mount samba shares with utf8 encoding using cifs

Threaded View

  1. #11
    Join Date
    Jan 2008
    Beans
    2

    Re: Mount samba shares with utf8 encoding using cifs

    Hoping someone can help me work this one out. My setup consists of Ubuntu 7.10 and a Synology DS-207+


    I created the directory /mnt/nas1 with my owner (glaxo) as the owner.


    Added the following to /etc/fstab;
    Code:
    //192.168.0.10/share    /mnt/nas1        cifs    credentials=/root/.smbcredentials,iocharset=utf8,file_mode=0777,dir_mode=0777 0 0

    And then created /root/.smbcredentials with the following content;
    Code:
    username=glaxo
    password=mypassword
    Then ran;
    Code:
    sudo chmod 700 /root/.smbcredentials

    This appears to mount the drive correctly. However, whilst I can create and access files I am unable to delete.

    Looking into this further it appears the files are mounted with root as the owner. Also all files newly created through this mount point have root as their owner.


    Running;
    Code:
    chown glaxo:glaxo /mnt/nas1
    returns - "permission denied"

    I am able to browse to the share through network places (using the same username & password as provided in .smbcredentials). When doing this there are no issues with deleting files and files newly created this way have glaxo as the owner.


    Edited: For clarity of text.
    Last edited by glaxo; January 22nd, 2008 at 10:30 AM.

Bookmarks

Posting Permissions

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