Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I can access the server and non password protected shares by using the following commands: ctrl + l smb://server/share

I can connect to the share using

smbclient //server/share -U 

I can connect using the command line using the following command:

sudo mount -t cifs //server/share -o username=user,password=password,uid=1000,gid=1000,iocharset=utf8,file_mode=0777,dir_mode=0777

How do I connect to this share using Nautilus 3.6.3?

share|improve this question
    
would have given more information on what you want and what you did so far –  Chella Feb 21 '13 at 12:06

2 Answers 2

up vote 5 down vote accepted

The new nautilus in 13.04 (raring) no longer shows a place to enter connection credentials. This makes it really hard to connect if you don't know the URI syntax. You can find help for the SMB URI syntax at Wikipedia.

Basically, use one of these URIs:

smb://[<user>@]<host>[:<port>][/[<path>]][?<param1>=<value1>[;<param2>=<value2>]] or
smb://[<user>@]<workgroup>[:<port>][/] or
smb://[[<domain>;]<username>[:<password>]@]<server>[:<port>][/[<share>[/[<path>]]][?[<param>=<value>[<param2>=<value2>[...]]]]][5]

The user name can contain spaces explicitly and doesn't require encoding. Myself, I used the following:

smb://My User@WINDOWSHOST/Share

You then are prompted for the credentials. I'm not sure if the share name can have a space since my shares don't have them, so I haven't tested it.

Once you access the share, you can right-click on it in the left panel and Bookmark it. This will make it remap when you log off and back in so you don't have to keep using the Connect to Server method all the time.

share|improve this answer

Based on my nautilus (3.4.2), in unity menu, you choose file, connect to server, then server details (the ip of the shared directory), type (windows share), and then you state share, folder and user details (domain, user, password). My install runs with cifs-utils installed (sudo apt-get install cifs-utils). You can also mount this share during start-up by adding in /etc/fstab:

//192.168.X.Y/shareddirectory /home/user/sharename cifs auto,iocharset=utf8,uid=1000,gid=1000,user=username%password 0 0

share|improve this answer
    
I know I can mount the directory from /etc/fstab, but that mounts it permanently. I only need to temporarily access a share. It used to be easy to do from Nautilus as their was an option to add a username and password. You can no longer add the username or password. I need to find out how to do this. –  John Fordyce Feb 21 '13 at 11:57
    
if you try to connect to server from nautilus via file menu? –  bob Feb 21 '13 at 11:59
    
The message received is: "Unhandled error message: Failed to mount Windows share" –  John Fordyce Feb 21 '13 at 12:02
    
Sorry, I do not know. The only way I see is each time you want to mount it, you run mount.cifs ... in terminal and then you will see it in natilus. –  bob Feb 21 '13 at 12:11
    
or alternatively in fstab to use noauto instead of auto –  bob Feb 21 '13 at 12:14

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.