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

J. D. jdonline at gmail.com
Sat Oct 27 13:37:53 EDT 2007


On 10/24/07, J. D. <jdonline at gmail.com> wrote:
> 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.
> > > > > > >


I just tried mounting the samba share on the nas from konqueror on a
new gutsy 7.10 install and there were no issues. That was a pleasant
surprise. I'm going to see if I can trace what it is doing.

Best regards,

J. D.



More information about the Ale mailing list