[xubuntu-users] smbclient connecting to a Red Hat EPEL 6 share

Joshua O'Leary joshua.oleary at btinternet.com
Mon Apr 30 16:45:21 UTC 2012


On 30/04/12 05:08, Luna Moon wrote:
> On 04/29/2012 03:41 PM, Luna Moon wrote:
>> Are you guys having trouble connecting to a samba shares?  I know I 
>> do, my Red Hat server has samba setup and it works great with windows 
>> clients, but when I installed Xubuntu 12.04 I cannot connect to any 
>> of the shares unless they have no log in.  Like anonymous work fine 
>> but others don't.  I know i am typing the password correct but it 
>> won't connect.
>>
>> I have already have
>> client lanman auth = yes
>> client ntmlv2 auth = no
>>
>> Domain=[MYGROUP] OS=[Unix] Server=[Samba 3.5.10-115.el6_2]
>> Server not using user level security and no password supplied.
>> tree connect failed: NT_STATUS_WRONG_PASSWORD
>>
>> Is there extra steps I have to do for Xubuntu?  Anybody can kindly 
>> point me to the right direction.
> I fixed it already I'm thinking samba or it could be Linux(more 
> thinking samba) does not like passwords with certain symbols.  I redid 
> the passwords to only numbers and letters though I like symbols but 
> that is a limitation I did not know I would face.  I CentOS 6 samba 
> take passwords symbols correctly it could be a bug who knows.
>
What are you using to connect to the shares? Make sure cifs-utils is 
installed, then in a terminal, try:
sudo mount.cifs //server/share /mnt/your-mount-point -o user=username 
password=password
(change the fields for your details).

If you are using the server often, add it to /etc/fstab:
//server/share /mount/point    cifs    
credentials=path/to/credentials/file,utf8    0    0

To allow normal users to mount it, add:
//server/share /mount/point    cifs    
credentials=path/to/credentials/file,utf8,user    0    0

To prevent it from mounting at boot time, use
//server/share /mount/point    cifs    
credentials=path/to/credentials/file,utf8,noauto    0    0

A credentials file should just contain:
username=whateverusernameis
password=sharepassword

If you really want a gui method (slower, and not as reliable) make sure 
gvfs-backends is installed, and browse shares under network in thunar 
(or do control-L, and smb://server/share).

Hope this is of some help.
Joshua




More information about the xubuntu-users mailing list