Re: suddenly doesn't work with the username and password in credentials=... in the mount line

Kin Yip <[email protected]>
Newsgroups gmane.linux.file-systems.cifs
Message-ID <[email protected]>
Hi Jeff,

Thanks for the reply.

It does look like that when I take away the carriage return in line of 
password in my "credentials" file,
mounting works !  That's my "work-around" for the time being.

Kin

Jeff Layton wrote:
> On Sun, 08 Nov 2009 13:18:50 -0500
> Kin Yip <[email protected]> wrote:
>
>   
>> Hi,
>>
>> I'm using Scientific Linux 5.3 (~ RedHat Enterprise 5.3).
>>
>> After a reboot today, I probably have switched to a new kernel, "uname 
>> -a" gives :
>>
>> Linux yipkin.c-ad.bnl.gov 2.6.18-128.7.1.el5 #1 SMP Mon Aug 24 08:22:26 
>> EDT 2009 i686 i686 i386 GNU/Linux
>>
>> Somehow, the auto-mounting with cifs for the following line in 
>> /etc/fstab doesn't work but it used to work :
>>
>> //c-adweb/data          /mnt/c-adweb            cifs    
>> domain=BNL,credentials=/root/.credentials,gid=kinyip,uid=kinyip 0 0
>>
>> I see error in /var/log/message:
>> Nov  8 13:11:50 yipkin kernel: Status code returned 0xc000006d 
>> NT_STATUS_LOGON_FAILURE
>> Nov  8 13:11:50 yipkin kernel:  CIFS VFS: Send error in SessSetup = -13
>> Nov  8 13:11:50 yipkin kernel:  CIFS VFS: cifs_mount failed w/return 
>> code = -13
>>
>> Using the command :
>>    mount -t cifs -o 
>> domain=BNL,credentials=/root/.credentials,gid=500,uid=500  
>> //c-adweb/data /mnt/c-adweb
>>
>> would get me :
>> mount error 13 = Permission denied
>> Refer to the mount.cifs(8) manual page (e.g.man mount.cifs)
>>
>> And I can see the same errors in /var/log/message (or dmesg).
>>
>> If I do "mount -t cifs -o domain=BNL,user=kinyip,gid=500,uid=500  
>> //c-adweb/data /mnt/c-adweb", it would ask me for password and
>> then it'd mount successfully !!
>>
>> In my file /root/.credentials  ("ls" would have : -rw------- 1 root root 
>> 39 Nov  8 13:02 /root/.credentials ), it's like
>> username=kinyip
>> password=$.....
>>
>> My first character of my password is $ and I'm wondering whether this is 
>> creating trouble ????  I've tried "\$...." but it doesn't help.
>>
>> Any idea ???
>>     
>
> Known regression. mount.cifs isn't stripping the trailing "\n" off of
> the password in cred files. We'll be shipping a fixed package for RHEL
> soon.
>
>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.