[QCLUG] Command restrictions
Jim Hall
volunteer.jim@gmail.com
Mon, 18 Jun 2007 16:49:23 -0500
---------------------- multipart/alternative attachment
On 6/18/07, David Bergert <dbergert@gmail.com> wrote:
>
> looks like jhall is not configured in /etc/sudoers.
>
> The easiest would be just using root:
>
> $su - root
> enter password: ******
> #mount d2-inst.iso /home/jhall/cdrom -o loop
>
>
> Jim Hall wrote:
> > On 6/18/07, *Jim Hall* <volunteer.jim@gmail.com
> > <mailto:volunteer.jim@gmail.com>> wrote:
> >
> > On 6/18/07, *Jim Hall* <volunteer.jim@gmail.com
> > <mailto:volunteer.jim@gmail.com>> wrote:
> >
> > On 6/18/07, *David Bergert* <dbergert@gmail.com
> > <mailto:dbergert@gmail.com>> wrote:
> >
> > run the command under sudo
> >
> > i,e.
> >
> > $sudo mount d2-inst.iso /home/jhall/cdrom -o loop
> > enter password: ******
> > or as the root user:
> >
> > $su - root
> > enter password: ******
> > #mount d2-inst.iso /home/jhall/cdrom -o loop
> >
> > Ahh .. Diablo 2 :) :) :)
> >
> > Jim Hall wrote:
> > > I'm trying to execute the following command (from the
> > directory where
> > > the file is):
> > > mount d2-inst.iso /home/jhall/cdrom -o loop
> > >
> > > Bash returns this:
> > > mount: only root can do that
> > >
> > > I've made this user (me) part of the root group; didn't
> help.
> > >
> > > What am I missing or doing wrong?
> > >
> > > Jim
> > >
> > > --
> > > This message has been scanned for viruses and
> > > dangerous content by *MailScanner* <
> > http://www.mailscanner.info/>, and is
> > > believed to be clean.
> >
> > _______________________________________________
> >
> >
> >
> >
> > I'll try sudo, as you've both suggested.
> >
> > Not just D2; D2LOD.
> >
> > Jim
> >
> >
> >
> > Tried sudo, got this:
> > Sorry, user jhall is not allowed to execute '/bin/mount d2-inst.iso
> > /home/jhall/cdrom -o loop' as root on localhost.localdomain.
> >
> > Jim
> >
> > --
> > This message has been scanned for viruses and
> > dangerous content by *MailScanner* <http://www.mailscanner.info/>, and
> is
> > believed to be clean.
>
> _______________________________________________
>
You are so right, it wasn't. I did a quick read of the sudo man page and
found out about "sudoers" and how to edit it. I gave jhall the same
permissions as root and it worked. Now, I think I have to change the iso
names to match the CD names because the install doesn't like the short ones
the HOWTO said to use.
Jim
---------------------- multipart/alternative attachment
An HTML attachment was scrubbed...
URL: http://qclug.org/pipermail/qclug/attachments/30606b84/attachment.htm
---------------------- multipart/alternative attachment--