Skip to contentSkip to conversation

password visible in 'mount' output?

DISCUSSION Ben Greear 2 participants 5 messages Aug 31, 2010 6 messages not in the archive

Subsystems (2)
lore
Share & tools
lore

Ben Greear

author
#0 lore raw

Is password supposed to be visible in the output of 'mount' ?

//192.168.100.3/d2 on /mnt/lf/fs3-cifs-2 type cifs (rw,srcaddr=192.168.100.217,user=greearb,passwd=xxx) //2002::100:3/d2 on /mnt/lf/fs3-cifs6-2 type cifs (rw,srcaddr=2002::100:217,user=greearb,passwd=xxx)

Thanks,
Ben

Signature · 2 lines
Ben Greear <greearb-my8/[email protected]>
Candela Technologies Inc  http://www.candelatech.com

A message that is not in the archive (sent off-list or not yet received): [email protected]

A message that is not in the archive (sent off-list or not yet received): AANLkTi=ehgG3kxv1oBpvjzmLX0TLp-W8h=h7VJDWoBOb-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org

author
#3 lore raw
Quoted 6 lines · Steve French

On Tue, Aug 31, 2010 at 12:04 PM, Ben Greear <greearb-my8/[email protected] <mailto:greearb-my8/[email protected]>> wrote:

Quoted 6 lines

Is password supposed to be visible in the output of 'mount' ?

No, neither the output of mount nor /proc/mounts should display this. What version of mount.cifs (type "mount.cifs -V" to get the version) are you running?

Standard Fedora 13, as far as I can tell, and I have no mount.cifs in $PATH

[root@ct503-10G-09 lanforge]# mount -V
mount from util-linux-ng 2.17.2 (with libblkid and selinux support) [root@ct503-10G-09 lanforge]# more /etc/issue
Fedora release 13 (Goddard)
Kernel \r on an \m (\l)

[root@ct503-10G-09 lanforge]# which mount.cifs
/usr/bin/which: no mount.cifs in (/usr/lib64/qt-3.3/bin:/usr/kerberos/sbin:/usr/kerberos/bin:/usr/lib64/ccache:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/xorp/sbin:/root/bin)

Password is not shown in /proc/mounts, so that part seems fine.

Thanks,
Ben

Signature · 2 lines
Ben Greear <greearb-my8/[email protected]>
Candela Technologies Inc  http://www.candelatech.com

A message that is not in the archive (sent off-list or not yet received): [email protected]

A message that is not in the archive (sent off-list or not yet received): AANLkTimZWTDZ--x9yNB0o93ET_EqkOro+v2oFrk4pjZ6-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org

author
#6 lore raw
Quoted 10 lines

Standard Fedora 13, as far as I can tell, and I have no mount.cifs in $PATH

You are right - if you are missing mount.cifs you will see what is passed into previous mounts, including the password (and cifs can't
filter it out for you since this is being done by mount). Not sure if
this is fixable though - you should have mount.cifs installed (when this would not be a problem) and Fedora does package mount.cifs.

I installed 'cifs-utils', which provides /sbin/mount.cifs, but 'mount' output is the same.

[root@ct503-10G-09 lanforge]# mount.cifs -V
mount.cifs version: 4.6

Thanks,
Ben

Signature · 2 lines
Ben Greear <greearb-my8/[email protected]>
Candela Technologies Inc  http://www.candelatech.com

A message that is not in the archive (sent off-list or not yet received): 4C7D5A55.8090707-my8/[email protected]

#8 lore raw
Quoted 11 lines · On Tue, 31 Aug 2010 12:39:01 -0700 Ben Greear…
Quoted 10 lines

Standard Fedora 13, as far as I can tell, and I have no mount.cifs in $PATH

You are right - if you are missing mount.cifs you will see what is passed into previous mounts, including the password (and cifs can't
filter it out for you since this is being done by mount). Not sure if
this is fixable though - you should have mount.cifs installed (when this would not be a problem) and Fedora does package mount.cifs.

Quoted 6 lines

I installed 'cifs-utils', which provides /sbin/mount.cifs, but 'mount' output is the same.

[root@ct503-10G-09 lanforge]# mount.cifs -V
mount.cifs version: 4.6

Running "mount" without args just displays the contents of /etc/mtab. If you did the mount previously and then installed mount.cifs, it won't fix the contents of /etc/mtab. New mounts shouldn't store the password in /etc/mtab though.

Signature · 1 line
Jeff Layton <[email protected]>

A message that is not in the archive (sent off-list or not yet received): 20100831154301.69a2274d-9yPaYZwiELC+kQycOl6kW4xkIHaj4LzF@public.gmane.org

author
#10 lore raw
Quoted 17 lines · Jeff Layton
Quoted 14 lines · On Tue, 31 Aug 2010 12:39:01 -0700 Ben Greear<greearb-my8/4N5VtI7c+919tysfdA@pu…
Quoted 10 lines

Standard Fedora 13, as far as I can tell, and I have no mount.cifs in $PATH

You are right - if you are missing mount.cifs you will see what is passed into previous mounts, including the password (and cifs can't
filter it out for you since this is being done by mount). Not sure if
this is fixable though - you should have mount.cifs installed (when this would not be a problem) and Fedora does package mount.cifs.

I installed 'cifs-utils', which provides /sbin/mount.cifs, but 'mount' output is the same.

Quoted 8 lines
Quoted 3 lines

[root@ct503-10G-09 lanforge]# mount.cifs -V
mount.cifs version: 4.6

Running "mount" without args just displays the contents of /etc/mtab. If you did the mount previously and then installed mount.cifs, it won't fix the contents of /etc/mtab. New mounts shouldn't store the password in /etc/mtab though.

Ahh, that did indeed fix it.

Thanks,
Ben

Signature · 2 lines
Ben Greear <greearb-my8/[email protected]>
Candela Technologies Inc  http://www.candelatech.com