[ale] Re: mount.cifs showing uid/gid of remote nas

J. D. jdonline at gmail.com
Wed Oct 24 17:14:16 EDT 2007


Thanks for the suggestions. For some reason smbfs doesn't work as a
mount option and smbmount is unavailable. I haven't really had a
chance to research it so I may quickly try some higher level tools.

Best regards,

J. D.

On 10/24/07, James Sumners <james.sumners at gmail.com> wrote:
> I know smbfs is deprecated. I suggested it for pretty much that
> reason. It's old and might not be as willing to try and do everything
> for you like cifs. The problem he is having is that the cifs protocol
> is picking up two completely different uids automatically. In my
> experience with smbfs, it uses the uid you specify and nothing else.
>
> On 10/24/07, Michael H. Warfield <mhw at wittsend.com> wrote:
> > On Tue, 2007-10-23 at 19:07 -0400, James Sumners wrote:
> > > Maybe you can mount it with smbfs instead of cifs.
> >
> >         smbfs is deprecated.  cifs is the replacement.  Even if smbfs
> works
> > (unlikely where cifs does not) it won't be supported in the long run.
> >
> >         Mike
> >
> > > On 10/23/07, J. D. <jdonline at gmail.com> wrote:
> > > > Thanks James. I read that article in my digging but I wasn't
> > > > too keen on how to disable the cifs extensions. I think I need to hack
> > > > the nas to get shell access to try that. It is a Western Digital
> mybook
> > > > world ediitionII that some say can be hacked to allow access to its
> > > > linux os. Wouldn't that be sweet?
> > > >
> > > > it is said that gcc is present so that opens up some possibilities.
> > > >
> > > > Best regards,
> > > >
> > > > J. D.
> > > >
> > > >
> > > > On 10/23/07, James Sumners <james.sumners at gmail.com> wrote:
> > > > > This -- http://www.google.com/search?q=mount.cifs+uid
> > > > >
> > > > > Returned --
> > > > http://lists.samba.org/archive/smb-clients/2005-May/000572.html
> > > > >
> > > > > On 10/23/07, J. D. <jdonline at gmail.com> wrote:
> > > > > > Hey all,
> > > > > >
> > > > > > I have been trying to properly mount a samba share on my home
> > > > > > nas. I can mount it but it retains the uid and gid of the nas
> > > > > > instead of the local ones.
> > > > > >
> > > > > > Upon doing some research into mount.cifs it indicates
> > > > > > that the local uid and gid parameters can be set  as arguments
> > > > > > and that they should override the remote ones. When I
> > > > > > try this though it doesn't seem to have an effect.
> > > > > >
> > > > > > Here is what I have tried:
> > > > > > [17:51:54 root at servo /home]# mount.cifs //$NAS_IP_HERE/store
> /home/store
> > > > -o
> > > > > > username=$FOOUSER,uid=501,gid=501
> > > > > >
> > > > > > and here is what I end up with:
> > > > > > [17:52:09 root at servo /home]# ls -l /home
> > > > > > drwx------ 11       33 root        0 Oct 22 10:39 store/
> > > > > > [17:52:12 root at servo /home]#
> > > > > >
> > > > > > As you can see the uid is 33 and the gid is root. It would be
> really
> > > > cool
> > > > > > for it to have the
> > > > > > gid and uid of my $FOOUSER instead. This is under Centos 5 and I
> have
> > > > > > duplicated similar
> > > > > > trouble with Ubuntu 7.04. Help a geek out please. ;)
> > > > > >
> > > > > > Best regards,
> > > > > >
> > > > > > J. D.
> > > > > >
> > > > > >
> > > > > > _______________________________________________
> > > > > > Ale mailing list
> > > > > > Ale at ale.org
> > > > > > http://www.ale.org/mailman/listinfo/ale
> > > > > >
> > > > >
> > > > >
> > > > > --
> > > > > James Sumners
> > > > > http://james.roomfullofmirrors.com/
> > > > >
> > > > > "All governments suffer a recurring problem: Power attracts
> > > > > pathological personalities. It is not that power corrupts but that
> it
> > > > > is magnetic to the corruptible. Such people have a tendency to
> become
> > > > > drunk on violence, a condition to which they are quickly addicted."
> > > > >
> > > > > Missionaria Protectiva, Text QIV (decto)
> > > > > CH:D 59
> > > > > _______________________________________________
> > > > > Ale mailing list
> > > > > Ale at ale.org
> > > > > http://www.ale.org/mailman/listinfo/ale
> > > > >
> > > >
> > > >
> > > > _______________________________________________
> > > > Ale mailing list
> > > > Ale at ale.org
> > > > http://www.ale.org/mailman/listinfo/ale
> > > >
> > >
> > >
> > --
> > Michael H. Warfield (AI4NB) | (770) 985-6132 |  mhw at WittsEnd.com
> >    /\/\|=mhw=|\/\/          | (678) 463-0932 |
> http://www.wittsend.com/mhw/
> >    NIC whois: MHW9          | An optimist believes we live in the best of
> all
> >  PGP Key: 0xDF1DD471        | possible worlds.  A pessimist is sure of it!
> >
> >
> > _______________________________________________
> > Ale mailing list
> > Ale at ale.org
> > http://www.ale.org/mailman/listinfo/ale
> >
> >
>
>
> --
> James Sumners
> http://james.roomfullofmirrors.com/
>
> "All governments suffer a recurring problem: Power attracts
> pathological personalities. It is not that power corrupts but that it
> is magnetic to the corruptible. Such people have a tendency to become
> drunk on violence, a condition to which they are quickly addicted."
>
> Missionaria Protectiva, Text QIV (decto)
> CH:D 59
> _______________________________________________
> Ale mailing list
> Ale at ale.org
> http://www.ale.org/mailman/listinfo/ale
>



More information about the Ale mailing list