Re: [ubuntu-in] sudo user on Fedora

2010-10-06 Thread Narendra Sisodiya
On Wed, Oct 6, 2010 at 12:46 PM, g...@sarai.net  wrote:

> On Tue, 5 Oct 2010 16:57:36 +0530 Narendra Sisodiya
>  wrote
>
> > On Mon, Oct 4, 2010 at 11:13 PM, g...@sarai.net  wrote:
> >
> > > On Mon, 4 Oct 2010 23:05:00 +0530 Narendra Sisodiya
> > >  wrote
> > >
> > > > How We can create settings to that user will become sudo user.
> > > >
> > > > I know this procedure. http://lug-iitd.org/Shell_Scripts#SUDO
> > > > How ubuntu manage to do it automatically.
> > > [...]
> > >
> > > What is wrong with the above procedure?
> > >
> > >
> > I want some permanent solution that if I create a new user, it will be
> given
> > sudo power.
> [...]
>
> Look at the EXTRA_GROUPS setting in the adduser configuration file:
> /etc/adduser.conf . You can put the admin group in this setting, and
> all new users should then have sudo access by virtue of being in the
> admin group.
>
>
Thanks a lot.
I got what I need to do.
Thanks again,


-- 
┌─┐
│Narendra Sisodiya
│http://narendrasisodiya.com
└─┘
-- 
ubuntu-in mailing list
ubuntu-in@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-in


Re: [ubuntu-in] sudo user on Fedora

2010-10-06 Thread g...@sarai.net
On Tue, 5 Oct 2010 16:57:36 +0530 Narendra Sisodiya
 wrote

> On Mon, Oct 4, 2010 at 11:13 PM, g...@sarai.net  wrote:
> 
> > On Mon, 4 Oct 2010 23:05:00 +0530 Narendra Sisodiya
> >  wrote
> >
> > > How We can create settings to that user will become sudo user.
> > >
> > > I know this procedure. http://lug-iitd.org/Shell_Scripts#SUDO
> > > How ubuntu manage to do it automatically.
> > [...]
> >
> > What is wrong with the above procedure?
> >
> >
> I want some permanent solution that if I create a new user, it will be given
> sudo power.
[...]

Look at the EXTRA_GROUPS setting in the adduser configuration file:
/etc/adduser.conf . You can put the admin group in this setting, and
all new users should then have sudo access by virtue of being in the
admin group.

Regards,
Gora



-- 
ubuntu-in mailing list
ubuntu-in@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-in


Re: [ubuntu-in] sudo user on Fedora

2010-10-05 Thread Mehul Ved
On Mon, Oct 4, 2010 at 11:05 PM, Narendra Sisodiya
 wrote:
> How We can create settings to that user will become sudo user.
>
> I know this procedure. http://lug-iitd.org/Shell_Scripts#SUDO
> How ubuntu manage to do it automatically.

Not all the users have sudo access. The first user has the access but
the users created henceforth do not have the access by default. You
have to add them to the admin group.

See this:

$ id
uid=1001(guest) gid=1001(guest)
groups=4(adm),20(dialout),21(fax),24(cdrom),25(floppy),26(tape),30(dip),44(video),46(plugdev),104(fuse),121(nopasswdlogin),1001(guest)

$ groups
guest adm dialout fax cdrom floppy tape dip video plugdev fuse nopasswdlogin

$ sudo su -
[sudo] password for guest:
guest is not in the sudoers file.  This incident will be reported.

-- 
With Regards,
Mehul Ved

-- 
ubuntu-in mailing list
ubuntu-in@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-in


Re: [ubuntu-in] sudo user on Fedora

2010-10-05 Thread Aanjhan R
On Tue, Oct 5, 2010 at 1:27 PM, Narendra Sisodiya
 wrote:
> I want some permanent solution that if I create a new user, it will be given
> sudo power.

Whats the issue with using adduser command or using visudo and editing
the sudoers file?

--
A

-- 
ubuntu-in mailing list
ubuntu-in@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-in


Re: [ubuntu-in] sudo user on Fedora

2010-10-05 Thread Mehul Ved
On Tue, Oct 5, 2010 at 4:57 PM, Narendra Sisodiya
 wrote:
> I want some permanent solution that if I create a new user, it will be given
> sudo power.

Add the user to the admin group? You could do that by writing your own
script around adduser.

-- 
With Regards,
Mehul Ved

-- 
ubuntu-in mailing list
ubuntu-in@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-in


Re: [ubuntu-in] sudo user on Fedora

2010-10-05 Thread Narendra Sisodiya
On Mon, Oct 4, 2010 at 11:13 PM, g...@sarai.net  wrote:

> On Mon, 4 Oct 2010 23:05:00 +0530 Narendra Sisodiya
>  wrote
>
> > How We can create settings to that user will become sudo user.
> >
> > I know this procedure. http://lug-iitd.org/Shell_Scripts#SUDO
> > How ubuntu manage to do it automatically.
> [...]
>
> What is wrong with the above procedure?
>
>
I want some permanent solution that if I create a new user, it will be given
sudo power.



> Ubuntu probably does the same thing behind the scenes, or
> maybe it just adds the default user at install time to the
> admin group, as /etc/sudoers has:
> # Members of the admin group may gain root privileges
> %admin ALL=(ALL) ALL
>
>
Thanks, I will try it.


> Regards,
> Gora
>
>
>
> --
> ubuntu-in mailing list
> ubuntu-in@lists.ubuntu.com
> https://lists.ubuntu.com/mailman/listinfo/ubuntu-in
>



-- 
┌─┐
│Narendra Sisodiya
│http://narendrasisodiya.com
└─┘
-- 
ubuntu-in mailing list
ubuntu-in@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-in


Re: [ubuntu-in] sudo user on Fedora

2010-10-04 Thread g...@sarai.net
On Mon, 4 Oct 2010 23:05:00 +0530 Narendra Sisodiya
 wrote

> How We can create settings to that user will become sudo user.
> 
> I know this procedure. http://lug-iitd.org/Shell_Scripts#SUDO
> How ubuntu manage to do it automatically.
[...]

What is wrong with the above procedure?

Ubuntu probably does the same thing behind the scenes, or
maybe it just adds the default user at install time to the
admin group, as /etc/sudoers has:
# Members of the admin group may gain root privileges
%admin ALL=(ALL) ALL

Regards,
Gora



-- 
ubuntu-in mailing list
ubuntu-in@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-in