oops.  It's "Then, add the user you want to be able to use sudo to the
wheel group (usermod -g wheel <name>)."

On 5/28/05, Mark Shields <[EMAIL PROTECTED]> wrote:
> Obviously, if you've never used sudo you'll have to emerge the package
> app-admin/sudo.  Then, configure /etc/sudoers with the visudo command.
>  Find #%wheel  ALL=(ALL)        ALL  and uncomment it.  Then, add the
> user you want to be able to use sudo to the wheel group (usermod -g
> <name>).  And that's it.  The user should now be able to use sudo,
> provide they enter the root password when using it.  If you don't want
> to have the use a password to use sudo (highly recommended you do),
> uncomment # %wheel        ALL=(ALL)       NOPASSWD: ALL instead.
> 
> On 5/27/05, Myk Taylor <[EMAIL PROTECTED]> wrote:
> > -----BEGIN PGP SIGNED MESSAGE-----
> > Hash: SHA1
> >
> > Run sudo after you ssh.  On my network, I backup my servers by setting
> > up sudoers on the server I want to backup and running the following
> > command from my workstation:
> >
> > ssh <flags> <user>@<hostname> "sudo dump -u<dumplevel>f- <filesystem>" |
> > gzip > <hostname>.<dumplevel>.<date>.gz
> >
> > Pupeno wrote:
> > > Hello,
> > > I'm trying to set up my computers so I make backups of my server from my
> > > workstation (we don't have a backup server). The thing is that I have a
> > > normal user on that server and I'm on the sudoers file to perform any
> > > root-task.
> > > Now, to back up, I'm running an rsync thru ssh to the server, but that 
> > > runs as
> > > a my user because I can't ssh as root, how can I achieve root privileges 
> > > to
> > > be able to perform the back up ?
> > > Thank you.
> > -----BEGIN PGP SIGNATURE-----
> > Version: GnuPG v1.4.1 (GNU/Linux)
> > Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org
> >
> > iD8DBQFCl2JIBOPsJyAQkeARAglpAKChjai/SSVils4LLAhvBHFw4GPF0gCgx50O
> > 4JBov/gZcdie8jtIhnBLvGw=
> > =1cGc
> > -----END PGP SIGNATURE-----
> > --
> > gentoo-user@gentoo.org mailing list
> >
> >
> 
> 
> --
> - Mark Shields
> 


-- 
- Mark Shields

-- 
gentoo-user@gentoo.org mailing list

Reply via email to