Page 59 of 137 FirstFirst ... 949575859606169109 ... LastLast
Results 581 to 590 of 1362

Thread: Mount samba shares with utf8 encoding using cifs

  1. #581
    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 Krydahl View Post
    rsync -r --delete /home/<username>/Documents/ /media/nas/Documents/

    I'll have a look round the link you sent. Ta.
    as far as i can see, this should work with no problems. it does work on my dapper install, but i haven't tested it on hardy yet.

    Quote Originally Posted by palmdoc View Post
    Thanks for your reply! Firstly I am esctatic that the last Ubuntu update fixed something in the smb system such that I can see the network shares at last in Nautilus!!

    OK I have done the credentials file and edited the fstab
    When I call:
    sudo mount -a
    I get an error unless I call as root:
    echo 0 > /proc/fs/cifs/LinuxExtensionsEnabled
    from the terminal first.
    Then when I call
    sudo mount -a
    the drive is mounted
    Appreciate tips on how to automatically disable unix extensions on boot!

    Cheers!
    okay ... almost done.

    now edit /etc/rc.local like so:
    Code:
    sudo nano /etc/rc.local
    edit the file so it looks like this:
    Code:
    #!/bin/sh -e
    #
    # rc.local
    #
    # This script is executed at the end of each multiuser runlevel.
    # Make sure that the script will "exit 0" on success or any other
    # value on error.
    #
    # In order to enable or disable this script just change the execution
    # bits.
    #
    # By default this script does nothing.
    
    echo 0 > /proc/fs/cifs/LinuxExtensionsEnabled
    mount -a
    exit 0
    reboot, and your share will be mounted automatically.

  2. #582
    Join Date
    Jul 2007
    Beans
    277

    Re: Mount samba shares with utf8 encoding using cifs

    as far as i can see, this should work with no problems. it does work on my dapper install, but i haven't tested it on hardy yet.
    Worked on Fiesty and Gutsy, used to work on Hardy - still does to an internal drive.

    I'll start my own thread and see if anyone else can throw any light on the problem. Thanks for your input.

  3. #583
    Join Date
    Jun 2008
    Beans
    52

    Re: Mount samba shares with utf8 encoding using cifs

    Hi,

    Sorry if this has been covered earlier in this thread... 59 pages takes a fair while to trawl through.

    Anyway, I've followed the how to, and have struck a problem:

    I have samba running on a Xubuntu Hardy box which I access via my laptop running Ubuntu Hardy and my desktop which is running Windows XP.

    I can access my shares via XP with full read/write permissions... no problems there.

    When connecting via the laptop, the shares mount and appear on the desktop. I initially had problems with the shares being owned by root but fixed that with chmod.

    But now, anytime I copy a file from my laptop to the share I sometimes get errors saying I don't have permission and any file that does copy gets owned by root.

    I did have the root account enabled through my own inexperience with Ubuntu, but have since disabled it (I think?).

    any pointers or ideas?

  4. #584
    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

    do you have the same username on both the laptop and your xubuntu server?

  5. #585
    Join Date
    Jun 2008
    Beans
    52

    Re: Mount samba shares with utf8 encoding using cifs

    Nope, should they be?

  6. #586
    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

    they do not need to be the same. it can cause problems if they are, so that's why i asked.

    how are you mounting the share from your laptop? please post the line you're using.

    also, please post your /etc/samba/smb.conf from your xubuntu server.

  7. #587
    Join Date
    Jun 2008
    Beans
    52

    Re: Mount samba shares with utf8 encoding using cifs

    from fstab

    3 shares:

    Code:
    //BOB/music    /media/music        cifs    credentials=/root/.smbcredentials,iocharset=utf8,file_mode=0777,dir_mode=0777 0 0
    //BOB/public    /media/public        cifs    credentials=/root/.smbcredentials,iocharset=utf8,file_mode=0777,dir_mode=0777 0 0
    //BOB/private    /media/private        cifs    credentials=/root/.smbcredentials,iocharset=utf8,file_mode=0777,dir_mode=0777 0 0
    smb.conf as created by GSAMBAD

    Code:
    [global]
    	server string = BOB 
    	workgroup = therapy
    	security = user
    	hosts allow = 127. 192.168.1.
    	interfaces = 127.0.0.1/8 192.168.1.1/24
    	remote announce = 192.168.1.255
    	remote browse sync = 192.168.1.255
    	printcap name = /etc/printcap
    	cups options = raw
    	log file = /var/log/samba/samba.log
    	max log size = 1000
    	username level = 8
    	password level = 8
    	unix password sync = yes
    	socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
    	local master = no
    	domain master = no
    	preferred master = no
    	os level = 33
    	logon drive = m:
    	logon home = \\%L\homes\%u
    	logon path = \\%L\profiles\%u
    	logon script = %G.bat
    	name resolve order = wins lmhosts bcast
    	wins server = 
    	dns proxy = no
    	client use spnego = no
    	client signing = no
    	client schannel = no
    	server schannel = no
    	allow trusted domains = no
    	obey pam restrictions = yes
    	enable spoolss = yes
    	follow symlinks = no
    	update encrypted = yes
    	passwd chat timeout = 120
    	username map = /etc/samba/smbusers
    	passwd program = /usr/bin/passwd '%u'
    	passwd chat = *New*password* %n\n *ReType*new*password* %n\n *passwd*changed*\n
    	add user script = /usr/sbin/useradd -d /dev/null -c 'Samba User Account' -s /dev/null '%u'
    	add user to group script = /usr/sbin/useradd -d /dev/null -c 'Samba User Account' -s /dev/null -g '%g' '%u'
    	add group script = /usr/sbin/groupadd '%g'
    	delete user script = /usr/sbin/userdel '%u'
    	delete user from group script = /usr/sbin/userdel '%u' '%g'
    	delete group script = /usr/sbin/groupdel '%g'
    	add machine script = /usr/sbin/useradd -d /dev/null -g sambamachines -c 'Samba Machine Account' -s /dev/null -M '%u'
    	machine password timeout = 120
    	idmap uid = 16777216-33554431
    	idmap gid = 16777216-33554431
    	template shell = /dev/null
    	winbind use default domain = yes
    	winbind separator = @
    	winbind cache time = 360
    	winbind trusted domains only = yes
    	winbind nested groups = no
    	winbind nss info = no
    ;	encrypt passwords = yes
    ;	guest ok = no
    ;	guest account = nobody
    
    [homes]
    	comment = Home Directories
    	path = /home
    	read only = no
    	share modes = no
    	locking = no
    
    [netlogon]
    	comment = Network Logon Service
    	path = /home/netlogon
    	read only = no
    	share modes = no
    	locking = no
    
    [profiles]
    	comment = User Profiles
    	path = /var/samba/profiles
    	read only = no
    	browseable = no
    	locking = no
    	create mode = 0600
    	directory mask = 0700
    
    [printers]
    	comment = All Printers
    	path = /var/spool/samba
    	printable = yes
    	share modes = no
    	locking = no
    
    [pdf-documents]
    	path = /home/pdf-documents
    	comment = Converted PDF Documents
    	writeable = yes
    	guest ok = yes
    
    [pdf-printer]
    	path = /tmp
    	comment = PDF Printer Service
    	printable = yes
    	guest ok = yes
    	use client driver = yes
    	printing = bsd
    	print command = /usr/bin/gsambadpdf %s %u
    	lpq command = 
    	lprm command = 
    
    [bel]
    	path = /home/bel
    	comment = files
    	valid users = Bel
    	write list = Bel
    	writeable = yes
    ;	available = yes
    	share modes = no
    	locking = no
    ;	browseable = yes
    
    [music]
    	path = /home/music
    	comment = music
    	valid users = wds
    	write list = wds
    	admin users = wds
    	writeable = yes
    ;	available = yes
    ;	browseable = yes
    ;	printable = no
    	share modes = no
    	locking = no
    
    [Private]
    	path = /home/private
    	comment = Private
    	valid users = wds
    	invalid users = Bel
    	write list = wds
    	admin users = wds
    	writeable = yes
    ;	available = yes
    ;	browseable = yes
    ;	printable = no
    	share modes = no
    	locking = no
    
    [public]
    	path = /home/public
    	comment = No comment
    	valid users = Bel, wds
    	write list = wds
    	admin users = wds
    	writeable = yes
    ;	available = yes
    ;	browseable = yes
    ;	printable = no
    	share modes = no
    	locking = no

  8. #588
    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

    on the xubuntu server, please post the output of:
    Code:
    stat %a /home/music

  9. #589
    Join Date
    Jun 2008
    Beans
    52

    Re: Mount samba shares with utf8 encoding using cifs

    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

  10. #590
    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

    regarding the credentials file on your laptop, does it contain the user and password of your xubuntu server, or the user/password of your laptop?

Page 59 of 137 FirstFirst ... 949575859606169109 ... 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
  •