Page 60 of 137 FirstFirst ... 1050585960616270110 ... LastLast
Results 591 to 600 of 1362

Thread: Mount samba shares with utf8 encoding using cifs

  1. #591
    Join Date
    Jun 2008
    Beans
    52

    Re: Mount samba shares with utf8 encoding using cifs

    just double checked,
    its got the user/pass of my user name in samba on the xubuntu server

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

    Re: Mount samba shares with utf8 encoding using cifs

    okay ... let's try this.

    on your xubuntu server, add your laptop user like so:
    Code:
    sudo useradd -s /bin/true laptop-username
    sudo smbpasswd -L -a laptop-username
    sudo smbpasswd -L -e laptop-username
    be sure to replace "laptop-username" with your actual laptop user name. also, make sure that when it asks for the password (on the second command), that you enter your laptop users password.

    restart your samba server for good measure:
    Code:
    sudo /etc/init.d/samba restart
    then update your credentials file on the laptop so that it contains your laptop username and password. remount, and see if that corrects your permission problems.

  3. #593
    Join Date
    Jun 2008
    Beans
    52

    Re: Mount samba shares with utf8 encoding using cifs

    ok, did that, rebooted everything & its still doing the same.

    any file I copy to the server from the laptop gets its owner status changed to root...

  4. #594
    Join Date
    Mar 2006
    Location
    Kitakyushu Japan
    Beans
    9,362
    Distro
    Ubuntu 11.04 Natty Narwhal

    Re: Mount samba shares with utf8 encoding using cifs

    ha! i found it!

    your problem is highlighted in red, below:
    Quote Originally Posted by waydownsouth View Post
    Code:
    therapy@BOB:~$ stat %a /home/music
    stat: cannot stat `%a': No such file or directory
      File: `/home/music'
      Size: 4096      	Blocks: 8          IO Block: 4096   directory
    Device: 813h/2067d	Inode: 7905281     Links: 8
    Access: (0770/drwxrwx---)  Uid: ( 1000/ therapy)   Gid: (    0/    root)
    Access: 2008-07-08 09:47:22.000000000 +1200
    Modify: 2008-07-08 09:49:48.000000000 +1200
    Change: 2008-07-08 09:49:48.000000000 +1200
    this shows that the group owner of your shared folder is root. this is why your files are getting changed to root permissions.

    to correct this problem, on your server, you need to change the group permissions for your share to your user with the following command:
    Code:
    sudo chgrp -R therapy /home/music
    restart your samba server with this command:
    Code:
    sudo /etc/init.d/samba restart
    then copy a file into your music folder from your laptop and see if it retains proper permissions. if it does, perform the same modification to the rest of your shares.

  5. #595
    Join Date
    Jun 2008
    Beans
    52

    Re: Mount samba shares with utf8 encoding using cifs

    righto, changed the permissions on the server

    Code:
    therapy@BOB:~$ stat %a /home/music
    stat: cannot stat `%a': No such file or directory
      File: `/home/music'
      Size: 4096      	Blocks: 8          IO Block: 4096   directory
    Device: 813h/2067d	Inode: 7905281     Links: 6
    Access: (0770/drwxrwx---)  Uid: ( 1000/ therapy)   Gid: ( 1000/ therapy)
    Access: 2008-07-08 14:59:50.000000000 +1200
    Modify: 2008-07-08 14:59:44.000000000 +1200
    Change: 2008-07-08 14:59:44.000000000 +1200
    still no joy...

    then thought to add my login to the therapy group...

    still no joy...

    Am I getting to the point where I should set this all up from scratch again?

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

    Re: Mount samba shares with utf8 encoding using cifs

    Quote Originally Posted by waydownsouth View Post
    righto, changed the permissions on the server

    Code:
    therapy@BOB:~$ stat %a /home/music
    stat: cannot stat `%a': No such file or directory
      File: `/home/music'
      Size: 4096      	Blocks: 8          IO Block: 4096   directory
    Device: 813h/2067d	Inode: 7905281     Links: 6
    Access: (0770/drwxrwx---)  Uid: ( 1000/ therapy)   Gid: ( 1000/ therapy)
    Access: 2008-07-08 14:59:50.000000000 +1200
    Modify: 2008-07-08 14:59:44.000000000 +1200
    Change: 2008-07-08 14:59:44.000000000 +1200
    still no joy...

    then thought to add my login to the therapy group...

    still no joy...
    well, at least things look okay for permissions on your server.

    Quote Originally Posted by waydownsouth View Post
    Am I getting to the point where I should set this all up from scratch again?
    nope, i think we'll just need to include your laptop id as a samba user on your xubuntu server.

    to do this, use the following commands:
    Code:
    sudo useradd -s /bin/true laptop-user
    sudo smbpasswd -L -a laptop-user
    sudo smbpasswd -L -e laptop-user
    be sure to change "laptop-user" to your actual laptop users id. also, with the second command, be sure to enter the password you use to log into your laptop.

    also, update your credentials file on your laptop, so that your laptop userid and password are in it instead of your xubuntu server user id and password.

    restart your samba server again, remount the shares, and try to copy a file to your samba share again.
    Last edited by dmizer; July 8th, 2008 at 04:25 AM.

  7. #597
    Join Date
    Jun 2008
    Beans
    52

    Re: Mount samba shares with utf8 encoding using cifs

    and thats still a negative...

  8. #598
    Join Date
    Mar 2006
    Location
    Kitakyushu Japan
    Beans
    9,362
    Distro
    Ubuntu 11.04 Natty Narwhal

    Re: Mount samba shares with utf8 encoding using cifs

    try copying a file into the music share from your xp machine, and post the output of
    Code:
    ls -l /home/music

  9. #599
    Join Date
    Jun 2008
    Beans
    52

    Re: Mount samba shares with utf8 encoding using cifs

    it would appear that the XP machine does the same... hmmm, I thought it was all good

    Code:
    -rwxr--r--  1 root    users         37 2008-07-08 16:14 this is a test file from XP.txt
    as compared to:
    Code:
    drwxrwx--- 14 therapy therapy     4096 2008-07-05 17:12 Music
    this is a file saved via the laptop:

    Code:
    -rwxr--r--  1 root    therapy  8439412 2008-07-08 15:36 file from laptop.pdf

  10. #600
    Join Date
    Mar 2006
    Location
    Kitakyushu Japan
    Beans
    9,362
    Distro
    Ubuntu 11.04 Natty Narwhal

    Re: Mount samba shares with utf8 encoding using cifs

    can you link me to the howto you used to create that smb.conf?

Page 60 of 137 FirstFirst ... 1050585960616270110 ... 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
  •