password visible in 'mount' output?
Subsystems (2)
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
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/mountsshould 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
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
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]>
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.6Running "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/mtabthough.
Ahh, that did indeed fix it.
Thanks,
Ben
Signature · 2 lines
Ben Greear <greearb-my8/[email protected]> Candela Technologies Inc http://www.candelatech.com