Page 43 of 137 FirstFirst ... 3341424344455393 ... LastLast
Results 421 to 430 of 1362

Thread: Mount samba shares with utf8 encoding using cifs

  1. #421
    Join Date
    Feb 2006
    Beans
    Hidden!
    Distro
    Ubuntu 7.10 Gutsy Gibbon

    Re: Mount samba shares with utf8 encoding using cifs

    lucana@laptop:~$ sudo aptitude install smbfs
    [sudo] password for lucana:
    Reading package lists... Done
    Building dependency tree
    Reading state information... Done
    Reading extended state information
    Initializing package states... Done
    Writing extended state information... Done
    Building tag database... Done
    No packages will be installed, upgraded, or removed.
    0 packages upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
    Need to get 0B of archives. After unpacking 0B will be used.
    Writing extended state information... Done
    Reading package lists... Done
    Building dependency tree
    Reading state information... Done
    Reading extended state information
    Initializing package states... Done
    Building tag database... Done
    lucana@laptop:~$ sudo mount -v /media/Movies1
    parsing options: rw,credentials=/root/.smbcredentials,iocharset=utf8,file_mode=0777,dir_ mode=0777
    Password:

    mount.cifs kernel mount options unc=//MEDIA\Movies1,ip=192.168.1.100,user=root,pass=***, ver=1,rw,credentials=/root/.smbcredentials,iocharset=utf8,file_mode=0777,dir_ mode=0777
    retrying with upper case share name

    mount.cifs kernel mount options unc=//MEDIA\MOVIES1,ip=192.168.1.100,user=root,pass=**,v er=1,rw,credentials=/root/.smbcredentials,iocharset=utf8,file_mode=0777,dir_ mode=0777
    mount error 6 = No such device or address
    Refer to the mount.cifs(8) manual page (e.g.man mount.cifs)
    lucana@laptop:~$ sudo cat /root/.smbcredentials
    lucana=lucana
    **=**
    lucana@laptop:~$

    and to the asked question. I dont know? Its not windows server or a server application it is just shared folders/drives on windows xp.

    I have to go to work now but ill be looking forward to your post. Thanks a bunch already

  2. #422
    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

    ah ah! your smbcredentials file is wrong.

    it should read like so:
    Code:
    username=lucana
    password=**
    (replace "**" with your actual windows password)

    opendns is something you would have needed to implement manually. so, if you don't know what it is, you aren't likely using it. besides, i think the smbcredentials file edit will fix your problem.

  3. #423
    Join Date
    Feb 2006
    Beans
    Hidden!
    Distro
    Ubuntu 7.10 Gutsy Gibbon

    Re: Mount samba shares with utf8 encoding using cifs

    still having the sudo mount -a error. this information is after editing the smbcredentials file.

    okay, edited credentials to look like this:

    lucana@laptop:~$ sudo cat /root/.smbcredentials
    username=lucana
    password=** (password edited)
    lucana@laptop:~$


    fstab is:
    //MEDIA/Movies1 /media/Movies1 cifs credentials=/root/.smbcredentials,iocharset=utf8,file_mode=0777,dir_ mode=0777 0 0

    sudo mount -a is:
    lucana@laptop:~$ sudo mount -a
    retrying with upper case share name
    mount error 6 = No such device or address
    Refer to the mount.cifs(8) manual page (e.g.man mount.cifs)
    lucana@laptop:~$

    sudo mount -v /media/Movies1 is:
    lucana@laptop:~$ sudo mount -v /media/Movies1
    parsing options: rw,credentials=/root/.smbcredentials,iocharset=utf8,file_mode=0777,dir_ mode=0777

    mount.cifs kernel mount options unc=//MEDIA\Movies1,ip=192.168.1.100,user=lucana,pass=** *,ver=1,rw,credentials=/root/.smbcredentials,iocharset=utf8,file_mode=0777,dir_ mode=0777
    retrying with upper case share name

    mount.cifs kernel mount options unc=//MEDIA\MOVIES1,ip=192.168.1.100,user=lucana,pass=** *,ver=1,rw,credentials=/root/.smbcredentials,iocharset=utf8,file_mode=0777,dir_ mode=0777
    mount error 6 = No such device or address
    Refer to the mount.cifs(8) manual page (e.g.man mount.cifs)

    ping media is:
    lucana@laptop:~$ ping MEDIA
    PING MEDIA (192.168.1.100) 56(84) bytes of data.
    64 bytes from 192.168.1.100: icmp_seq=1 ttl=128 time=1.33 ms
    64 bytes from 192.168.1.100: icmp_seq=2 ttl=128 time=1.34 ms
    64 bytes from 192.168.1.100: icmp_seq=3 ttl=128 time=1.43 ms

    --- MEDIA ping statistics ---
    3 packets transmitted, 3 received, 0% packet loss, time 10207ms
    rtt min/avg/max/mdev = 1.330/1.372/1.439/0.056 ms
    lucana@laptop:~$

    ls media is:
    lucana@laptop:~$ ls /media
    cdrom cdrom0 movies movies1 Movies1

    smbtree is:
    lucana@laptop:~$ smbtree
    Password:
    CHOPPERS
    \\MEDIA Server
    \\MEDIA\Movies2 (F)
    \\MEDIA\C$ Default share
    \\MEDIA\ADMIN$ Remote Admin
    \\MEDIA\Music (E)
    \\MEDIA\F$ Default share
    \\MEDIA\Movies1 (D)
    \\MEDIA\SharedDocs
    \\MEDIA\D$ Default share
    \\MEDIA\IPC$ Remote IPC
    \\MEDIA\E$ Default share
    \\LAPTOP Samba 3.0.26a
    \\LAPTOP\IPC$ IPC Service (Samba 3.0.26a)
    lucana@laptop:~$


    let me know if posting all this information is annoying. Since I cant really help with the troubleshooting train of thought, I want to be as helpfull as possible.
    Last edited by love2learn; April 10th, 2008 at 09:28 AM.

  4. #424
    Join Date
    Jul 2007
    Location
    Virginia, US
    Beans
    Hidden!

    Re: Mount samba shares with utf8 encoding using cifs

    I am running Hardy Beta, and I am having trouble. I followed this How-To because it looked simpler than yours (no offense).

    When I try to remount my drives I get this error message:
    Code:
    hetirv@hetirv-laptop:~$ sudo mount -a
    mount error: can not change directory into mount target /mnt/net
    here is the fstab line
    Code:
    //svspec30/net$ /mnt/net smbfs credentials=/home/hetirv/.smbcredentials,uid=1000 0 0
    Registered Linux User: 453202 Registered Ubuntu User:17339
    WARNING: Don't take code or candy from strangers.

  5. #425
    Join Date
    Feb 2006
    Beans
    Hidden!
    Distro
    Ubuntu 7.10 Gutsy Gibbon

    Re: Mount samba shares with utf8 encoding using cifs

    that is weird, that is the same install I started to follow before I followed dmizers. I wonder if it has anything to do with the chmod we did to the smb file? I dont know what I am talking about but just seems like the step that dmizers didnt have?

  6. #426
    Join Date
    Feb 2006
    Beans
    Hidden!
    Distro
    Ubuntu 7.10 Gutsy Gibbon

    Re: Mount samba shares with utf8 encoding using cifs

    yeah, this seems to be the only thing that is different as far as the same steps go.

    dmizer's how to
    sudo chmod 700 /root/.smbcredentials

    other how to
    sudo chown root .smbcredentials
    sudo chmod 600 .smbcredentials

    Dunno, I am too new to linux to be of major help.

  7. #427
    Join Date
    Jul 2007
    Location
    Virginia, US
    Beans
    Hidden!

    Re: Mount samba shares with utf8 encoding using cifs

    I'm not in Ubuntu right now, but in doing some research:
    chmod 600 file A private file only changeable by the user who entered this command.
    chmod 700 file Protects a file against any access from other users, while the issuing user still has full access.

    It seems like it should work either way, the difference is only in how the write permissions are given.

    I also have something weird in my /etc/nsswitch.conf file. I will post the line once I get back into Ubuntu.
    Registered Linux User: 453202 Registered Ubuntu User:17339
    WARNING: Don't take code or candy from strangers.

  8. #428
    Join Date
    Jul 2007
    Location
    Virginia, US
    Beans
    Hidden!

    Re: Mount samba shares with utf8 encoding using cifs

    Here is the line from /etc/nsswitch.conf
    Code:
    hosts:          files mdns4_minimal [NOTFOUND=return] dns mdns4
    Registered Linux User: 453202 Registered Ubuntu User:17339
    WARNING: Don't take code or candy from strangers.

  9. #429
    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 love2learn View Post
    still having the sudo mount -a error. this information is after editing the smbcredentials file.
    okay ... your mount should work fine. the only thing i can think of now that could be preventing you access is a firewall either on your ubuntu machine (firestarter) or on your remote windows machine. please try disabling any firewalls you may have active (norton, mcafee, XP native firewall ...), and then try the mount again.

  10. #430
    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 Het Irv View Post
    I am running Hardy Beta, and I am having trouble. I followed this How-To because it looked simpler than yours (no offense).

    When I try to remount my drives I get this error message:
    Code:
    hetirv@hetirv-laptop:~$ sudo mount -a
    mount error: can not change directory into mount target /mnt/net
    here is the fstab line
    Code:
    //svspec30/net$ /mnt/net smbfs credentials=/home/hetirv/.smbcredentials,uid=1000 0 0
    no offense taken. important thing is that you get it to work.

    try this:
    Code:
    sudo chmod 777 /mnt/net
    sudo mount -a
    Quote Originally Posted by Het Irv View Post
    Here is the line from /etc/nsswitch.conf
    Code:
    hosts:          files mdns4_minimal [NOTFOUND=return] dns mdns4
    this is fine for an nsswitch.conf file. not all nsswitch.conf files are identical, which is why i said "something like this" in my howto.

Page 43 of 137 FirstFirst ... 3341424344455393 ... 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
  •