Page 72 of 137 FirstFirst ... 2262707172737482122 ... LastLast
Results 711 to 720 of 1362

Thread: Mount samba shares with utf8 encoding using cifs

  1. #711
    Join Date
    Oct 2008
    Location
    New Zealand
    Beans
    35
    Distro
    Ubuntu 9.10 Karmic Koala

    Re: Mount samba shares with utf8 encoding using cifs

    Quote Originally Posted by dmizer View Post
    scoopy,

    I have tested multiple configurations in my sandbox, but I have not been able to duplicate your problem.

    Please try this line:
    Code:
    //studycom/j/My\040Documents    /media/JodieFiles/       cifs    guest,user=windows-username,rw,iocharset=utf8,nounix,nobrl,file_mode=0777,dir_mode=0777 0 0
    Replace "windows-username" with the actual username on your Windows computer (eg. administrator).

    If that is not successful, please post the output of:
    Code:
    ls -l /media/JodieFiles
    Unfortunately it didn't work.

    Here's the output you requested.

    total 453
    -rwxrwxrwx 1 root root 458840 2008-06-04 18:30 bluesoleil.exe
    drwxrwxrwx 1 root root 0 2008-07-23 19:51 Bluetooth
    drwxrwxrwx 1 root root 0 2008-04-19 08:25 Cashbook Data
    -rwxrwxrwx 1 root root 0 2007-12-03 18:51 Default.rdp
    -rwxrwxrwx 1 root root 75 2007-11-29 18:48 desktop.ini
    drwxrwxrwx 1 root root 0 2008-09-21 14:58 Downloads
    drwxrwxrwx 1 root root 0 2008-06-11 17:44 Duty Rosters
    drwxrwxrwx 1 root root 0 2008-10-12 18:46 Ella's Stuff
    drwxrwxrwx 1 root root 0 2008-09-24 07:34 Hana's Stuff
    drwxrwxrwx 1 root root 0 2008-08-14 18:24 ~Jodie's Stuff
    drwxrwxrwx 1 root root 0 2008-10-27 19:55 luketest
    drwxrwxrwx 1 root root 0 2007-12-01 16:23 My Google Gadgets
    drwxrwxrwx 1 root root 0 2007-11-29 18:48 My Music
    drwxrwxrwx 1 root root 0 2008-10-25 17:15 My Pictures
    drwxrwxrwx 1 root root 0 2007-12-01 16:47 My Videos
    drwxrwxrwx 1 root root 0 2007-12-03 19:38 software
    drwxrwxrwx 1 root root 0 2007-12-01 17:45 Vision Design
    drwxrwxrwx 1 root root 0 2007-12-01 19:21 web design


    it doesn't seem to matter what I put as the username I get the same issue. for that machine the username doesn't have any password attached eg username = bob password = " "

    Thanks

    Scoopy

  2. #712
    Join Date
    Mar 2006
    Location
    Kitakyushu Japan
    Beans
    9,361
    Distro
    Ubuntu 11.04 Natty Narwhal

    Re: Mount samba shares with utf8 encoding using cifs

    It's difficult to get permissions correct when mounting as a guest.

    Try this:
    Code:
    //studycom/j/My\040Documents    /media/JodieFiles/       cifs    guest,uid=user,gid=users,rw,iocharset=utf8,nounix,nobrl,file_mode=0777,dir_mode=0777 0 0

  3. #713
    Join Date
    Mar 2006
    Location
    Kitakyushu Japan
    Beans
    9,361
    Distro
    Ubuntu 11.04 Natty Narwhal

    Re: Mount samba shares with utf8 encoding using cifs

    It's difficult to get permissions correct when mounting as a guest.

    Try this:
    Code:
    //studycom/j/My\040Documents    /media/JodieFiles/       cifs    guest,uid=user,gid=users,rw,iocharset=utf8,nounix,nobrl,file_mode=0777,dir_mode=0777 0 0

  4. #714
    Join Date
    Oct 2008
    Location
    New Zealand
    Beans
    35
    Distro
    Ubuntu 9.10 Karmic Koala

    Re: Mount samba shares with utf8 encoding using cifs

    Quote Originally Posted by dmizer View Post
    It's difficult to get permissions correct when mounting as a guest.

    Try this:
    Code:
    //studycom/j/My\040Documents    /media/JodieFiles/       cifs    guest,uid=user,gid=users,rw,iocharset=utf8,nounix,nobrl,file_mode=0777,dir_mode=0777 0 0
    on adding this code and executing a mount I get this:
    Code:
    luke@luke-laptop:~$ sudo mount -a
    bad user name "user"

  5. #715
    Join Date
    Oct 2008
    Location
    New Zealand
    Beans
    35
    Distro
    Ubuntu 9.10 Karmic Koala

    Re: Mount samba shares with utf8 encoding using cifs

    BTW, if I chown files from root to luke it's all good

  6. #716
    Join Date
    Mar 2006
    Location
    Kitakyushu Japan
    Beans
    9,361
    Distro
    Ubuntu 11.04 Natty Narwhal

    Re: Mount samba shares with utf8 encoding using cifs

    Quote Originally Posted by scoopy View Post
    BTW, if I chown files from root to luke it's all good
    Does it stay that way?

  7. #717
    Join Date
    Oct 2008
    Location
    New Zealand
    Beans
    35
    Distro
    Ubuntu 9.10 Karmic Koala

    Re: Mount samba shares with utf8 encoding using cifs

    No, permissions to seem to revert to root again.

  8. #718
    Join Date
    Aug 2006
    Location
    Portugal
    Beans
    43
    Distro
    Lubuntu 13.04 Raring Ringtail

    Re: Mount samba shares with utf8 encoding using cifs

    Hi. Thanks a lot for the thread dmizer. It was really helpful.

    I'm having the exact same problem scoopy has. Every file on the share has it's permissions set to root. I can write on them running the applications as root like:
    Code:
    gksudo nautilus
    but that's not very handy.

    Has anyone figured out a solution?

    --Edit

    I found that just the files on the root directory like /media/sharename have write permission only for root. Files in subsequent directories like /media/sharename/something can be writed by any user.
    Last edited by DarkDead; November 2nd, 2008 at 02:50 AM.

  9. #719
    Join Date
    Mar 2006
    Location
    Kitakyushu Japan
    Beans
    9,361
    Distro
    Ubuntu 11.04 Natty Narwhal

    Re: Mount samba shares with utf8 encoding using cifs

    scoopy and DarkDead, please post the output of:
    Code:
    ls -n /media/sharename

  10. #720
    Join Date
    Aug 2006
    Location
    Portugal
    Beans
    43
    Distro
    Lubuntu 13.04 Raring Ringtail

    Re: Mount samba shares with utf8 encoding using cifs

    Here it is:
    Code:
    david@principal:~$ ls -n /media/servidor
    total 1898
    -rwxrwxrwx 1 0 0  57344 2008-03-25 15:27 2430a.xls
    -rwxrwxrwx 1 0 0  30550 2008-03-25 15:27 2430a.xlsx
    -rwxrwxrwx 1 0 0  56832 2008-03-25 15:27 243.xls
    -r-xr-xr-x 1 0 0    211 2006-08-15 04:29 boot.ini
    -rwxrwxrwx 1 0 0   1178 2007-02-20 16:43 Default.rdp
    -rwxrwxrwx 1 0 0     82 2008-09-16 17:35 desktop.ini
    drwxrwxrwx 1 0 0      0 2008-10-31 20:41 Downloads
    -rwxrwxrwx 1 0 0 176603 2008-10-05 11:56 inatel imoppi.jpg
    -rwxrwxrwx 1 0 0 259871 2008-10-05 11:54 inatel.jpg
    -rwxrwxrwx 1 0 0   1985 2008-05-01 16:07 ir.conf
    -r-xr-xr-x 1 0 0 250592 2006-08-06 04:32 ntldr
    -rwxrwxrwx 1 0 0     43 2007-01-16 01:41 tskill.bat

Page 72 of 137 FirstFirst ... 2262707172737482122 ... LastLast

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
  •