All of lore.kernel.org
 help / color / mirror / Atom feed
* password visible in 'mount' output?
@ 2010-08-31 17:04 Ben Greear
       [not found] ` <AANLkTi=ehgG3kxv1oBpvjzmLX0TLp-W8h=h7VJDWoBOb@mail.gmail.com>
  0 siblings, 1 reply; 5+ messages in thread
From: Ben Greear @ 2010-08-31 17:04 UTC (permalink / raw)
  To: linux-cifs-u79uwXL29TY76Z2rM5mHXA


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

-- 
Ben Greear <greearb-my8/4N5VtI7c+919tysfdA@public.gmane.org>
Candela Technologies Inc  http://www.candelatech.com

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: password visible in 'mount' output?
       [not found]   ` <AANLkTi=ehgG3kxv1oBpvjzmLX0TLp-W8h=h7VJDWoBOb-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
@ 2010-08-31 19:26     ` Ben Greear
       [not found]       ` <AANLkTimZWTDZ--x9yNB0o93ET_EqkOro+v2oFrk4pjZ6@mail.gmail.com>
  0 siblings, 1 reply; 5+ messages in thread
From: Ben Greear @ 2010-08-31 19:26 UTC (permalink / raw)
  To: Steve French; +Cc: linux-cifs-u79uwXL29TY76Z2rM5mHXA

On 08/31/2010 11:48 AM, Steve French wrote:
>
>
> On Tue, Aug 31, 2010 at 12:04 PM, Ben Greear <greearb-my8/4N5VtI7c+919tysfdA@public.gmane.org
> <mailto:greearb-my8/4N5VtI7c+919tysfdA@public.gmane.org>> wrote:
>
>
>     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

-- 
Ben Greear <greearb-my8/4N5VtI7c+919tysfdA@public.gmane.org>
Candela Technologies Inc  http://www.candelatech.com

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: password visible in 'mount' output?
       [not found]         ` <AANLkTimZWTDZ--x9yNB0o93ET_EqkOro+v2oFrk4pjZ6-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
@ 2010-08-31 19:39           ` Ben Greear
       [not found]             ` <4C7D5A55.8090707-my8/4N5VtI7c+919tysfdA@public.gmane.org>
  0 siblings, 1 reply; 5+ messages in thread
From: Ben Greear @ 2010-08-31 19:39 UTC (permalink / raw)
  To: Steve French; +Cc: linux-cifs-u79uwXL29TY76Z2rM5mHXA, Jeff Layton


>     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

-- 
Ben Greear <greearb-my8/4N5VtI7c+919tysfdA@public.gmane.org>
Candela Technologies Inc  http://www.candelatech.com

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: password visible in 'mount' output?
       [not found]             ` <4C7D5A55.8090707-my8/4N5VtI7c+919tysfdA@public.gmane.org>
@ 2010-08-31 19:43               ` Jeff Layton
       [not found]                 ` <20100831154301.69a2274d-9yPaYZwiELC+kQycOl6kW4xkIHaj4LzF@public.gmane.org>
  0 siblings, 1 reply; 5+ messages in thread
From: Jeff Layton @ 2010-08-31 19:43 UTC (permalink / raw)
  To: Ben Greear; +Cc: Steve French, linux-cifs-u79uwXL29TY76Z2rM5mHXA

On Tue, 31 Aug 2010 12:39:01 -0700
Ben Greear <greearb-my8/4N5VtI7c+919tysfdA@public.gmane.org> wrote:

> 
> >     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
> 

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.

-- 
Jeff Layton <jlayton-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: password visible in 'mount' output?
       [not found]                 ` <20100831154301.69a2274d-9yPaYZwiELC+kQycOl6kW4xkIHaj4LzF@public.gmane.org>
@ 2010-08-31 19:47                   ` Ben Greear
  0 siblings, 0 replies; 5+ messages in thread
From: Ben Greear @ 2010-08-31 19:47 UTC (permalink / raw)
  To: Jeff Layton; +Cc: Steve French, linux-cifs-u79uwXL29TY76Z2rM5mHXA

On 08/31/2010 12:43 PM, Jeff Layton wrote:
> On Tue, 31 Aug 2010 12:39:01 -0700
> Ben Greear<greearb-my8/4N5VtI7c+919tysfdA@public.gmane.org>  wrote:
>
>>
>>>      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
>>
>
> 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


-- 
Ben Greear <greearb-my8/4N5VtI7c+919tysfdA@public.gmane.org>
Candela Technologies Inc  http://www.candelatech.com

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2010-08-31 19:47 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-08-31 17:04 password visible in 'mount' output? Ben Greear
     [not found] ` <AANLkTi=ehgG3kxv1oBpvjzmLX0TLp-W8h=h7VJDWoBOb@mail.gmail.com>
     [not found]   ` <AANLkTi=ehgG3kxv1oBpvjzmLX0TLp-W8h=h7VJDWoBOb-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2010-08-31 19:26     ` Ben Greear
     [not found]       ` <AANLkTimZWTDZ--x9yNB0o93ET_EqkOro+v2oFrk4pjZ6@mail.gmail.com>
     [not found]         ` <AANLkTimZWTDZ--x9yNB0o93ET_EqkOro+v2oFrk4pjZ6-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2010-08-31 19:39           ` Ben Greear
     [not found]             ` <4C7D5A55.8090707-my8/4N5VtI7c+919tysfdA@public.gmane.org>
2010-08-31 19:43               ` Jeff Layton
     [not found]                 ` <20100831154301.69a2274d-9yPaYZwiELC+kQycOl6kW4xkIHaj4LzF@public.gmane.org>
2010-08-31 19:47                   ` Ben Greear

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.