 |
|
 |
|
Next: [Samba] TYPO smbstatus manpage
|
| Author |
Message |
External

Since: Dec 10, 2008 Posts: 15
|
(Msg. 1) Posted: Wed Jul 01, 2009 1:04 am
Post subject: giving root access Archived from groups: comp>os>linux>development>system (more info?)
|
|
|
Hi, I know there has been enough discussion on this, but still cant
find the right answer.
If I change the /etc/sudoers file by visudo and try to give any user
root access, why cant i use adduser, or passwd?
# User privilege specification
root ALL=(ALL) ALL
zix ALL=(ALL) ALL
[zix@dns comps]$ adduser zix1
adduser: unable to lock password file
passwd sandy
passwd: Only root can specify a user name.
how do I make the change?any quick help please, somebody.. |
|
| Back to top |
|
 |  |
External

Since: Dec 10, 2008 Posts: 15
|
(Msg. 2) Posted: Wed Jul 01, 2009 1:49 am
Post subject: Re: giving root access [Login to view extended thread Info.] Archived from groups: per prev. post (more info?)
|
|
|
On Jul 1, 1:10 pm, Teemu Likonen <tliko... DeleteThis @iki.fi> wrote:
> On 2009-07-01 01:04 (-0700), zix wrote:
>
>
>
> > Hi, I know there has been enough discussion on this, but still cant
> > find the right answer.
> > If I change the /etc/sudoers file by visudo and try to give any user
> > root access, why cant i use adduser, or passwd?
>
> > # User privilege specification
> > root ALL=(ALL) ALL
> > zix ALL=(ALL) ALL
>
> > [zix@dns comps]$ adduser zix1
> > adduser: unable to lock password file
>
> > passwd sandy
> > passwd: Only root can specify a user name.
>
> > how do I make the change?any quick help please, somebody..
>
> Sudo means access control through "sudo" command. So, try:
>
> $ sudo adduser zix1
>
> That user (zix) needs to give his/her own address.
oops, then i dont want in that way..i want a user who has full access
rites as root.how do i do that?no sudo...and yes, i do understand the
security risks, so please no advice why i should not give fll root
access to users
i have tried addgroup...it didnt help..any other ways of doing that?
Thanks everybody,
zix |
|
| Back to top |
|
 |  |
External

Since: Dec 10, 2008 Posts: 15
|
(Msg. 3) Posted: Wed Jul 01, 2009 3:48 am
Post subject: Re: giving root access [Login to view extended thread Info.] Archived from groups: per prev. post (more info?)
|
|
|
> Set the user's uid to 0? Why bother with different users in that case though?
>
> <insert the usual many paragraphs about why multiple users
> with uid=0 is a very bad idea and shouldn't be done>
>
> - Philip
>
> --
> Philip Paeps Please don't email any replies
> phi... DeleteThis @paeps.cx I follow the newsgroup.
thanks Philip for the help..i will download source for usermod and
then use it on my target. i am using busybox binary which does not
have the usermod support |
|
| Back to top |
|
 |  |
External

Since: Nov 09, 2008 Posts: 9
|
(Msg. 4) Posted: Wed Jul 01, 2009 5:20 am
Post subject: Re: giving root access [Login to view extended thread Info.] Archived from groups: per prev. post (more info?)
|
|
|
On 2009-07-01 01:04 (-0700), zix wrote:
> Hi, I know there has been enough discussion on this, but still cant
> find the right answer.
> If I change the /etc/sudoers file by visudo and try to give any user
> root access, why cant i use adduser, or passwd?
>
> # User privilege specification
> root ALL=(ALL) ALL
> zix ALL=(ALL) ALL
>
> [zix@dns comps]$ adduser zix1
> adduser: unable to lock password file
>
> passwd sandy
> passwd: Only root can specify a user name.
>
> how do I make the change?any quick help please, somebody..
Sudo means access control through "sudo" command. So, try:
$ sudo adduser zix1
$ sudo passwd
That user (zix) needs to give his/her own address. |
|
| Back to top |
|
 |  |
External

Since: Nov 09, 2008 Posts: 9
|
(Msg. 5) Posted: Wed Jul 01, 2009 5:20 am
Post subject: Re: giving root access [Login to view extended thread Info.] Archived from groups: per prev. post (more info?)
|
|
|
On 2009-07-01 01:04 (-0700), zix wrote:
> Hi, I know there has been enough discussion on this, but still cant
> find the right answer.
> If I change the /etc/sudoers file by visudo and try to give any user
> root access, why cant i use adduser, or passwd?
>
> # User privilege specification
> root ALL=(ALL) ALL
> zix ALL=(ALL) ALL
>
> [zix@dns comps]$ adduser zix1
> adduser: unable to lock password file
>
> passwd sandy
> passwd: Only root can specify a user name.
>
> how do I make the change?any quick help please, somebody..
Sudo means access control through "sudo" command. So, try:
$ sudo adduser zix1
That user (zix) needs to give his/her own address. |
|
| Back to top |
|
 |  |
External

Since: Jul 22, 2004 Posts: 4
|
(Msg. 6) Posted: Wed Jul 01, 2009 5:20 am
Post subject: Re: giving root access [Login to view extended thread Info.] Archived from groups: per prev. post (more info?)
|
|
|
zix <zixenus.RemoveThis@gmail.com> wrote:
> On Jul 1, 1:10 pm, Teemu Likonen <tliko....RemoveThis@iki.fi> wrote:
>> On 2009-07-01 01:04 (-0700), zix wrote:
>>
>>
>>
>> > Hi, I know there has been enough discussion on this, but still cant
>> > find the right answer.
>> > If I change the /etc/sudoers file by visudo and try to give any user
>> > root access, why cant i use adduser, or passwd?
>>
>> > # User privilege specification
>> > root ALL=(ALL) ALL
>> > zix ALL=(ALL) ALL
>>
>> > [zix@dns comps]$ adduser zix1
>> > adduser: unable to lock password file
>>
>> > passwd sandy
>> > passwd: Only root can specify a user name.
>>
>> > how do I make the change?any quick help please, somebody..
>>
>> Sudo means access control through "sudo" command. So, try:
>>
>> $ sudo adduser zix1
>>
>> That user (zix) needs to give his/her own address.
>
> oops, then i dont want in that way..i want a user who has full access
> rites as root.how do i do that?no sudo...and yes, i do understand the
> security risks, so please no advice why i should not give fll root
> access to users
> i have tried addgroup...it didnt help..any other ways of doing that?
Set the user's uid to 0? Why bother with different users in that case though?
<insert the usual many paragraphs about why multiple users
with uid=0 is a very bad idea and shouldn't be done>
- Philip
--
Philip Paeps Please don't email any replies
philip.RemoveThis@paeps.cx I follow the newsgroup. |
|
| Back to top |
|
 |  |
External

Since: Nov 09, 2008 Posts: 9
|
(Msg. 7) Posted: Wed Jul 01, 2009 5:20 am
Post subject: Re: giving root access [Login to view extended thread Info.] Archived from groups: per prev. post (more info?)
|
|
|
On 2009-07-01 01:49 (-0700), zix wrote:
> On Jul 1, 1:10 pm, Teemu Likonen <tliko....TakeThisOut@iki.fi> wrote:
>> Sudo means access control through "sudo" command. So, try:
>>
>> $ sudo adduser zix1
>>
>> That user (zix) needs to give his/her own address.
>
> oops, then i dont want in that way..i want a user who has full access
> rites as root.how do i do that?no sudo...and yes, i do understand the
> security risks, so please no advice why i should not give fll root
> access to users
I'd still use sudo. Just execute "sudo -i" first and it will simulate
root's login shell environment. Or if you want user's environment
execute "sudo -s" to just launch user's default shell with root access.
Once you have a shell with root's access, you don't deed to give sudo
command anymore, obviously.
If you want all this happen automatically without giving password nor
doing anything special, use "visudo" to add a line like this to
/etc/sudoers file:
zix ALL=(ALL) NOPASSWD: ALL
Then put a line like
[ $UID -ne 0 ] && /usr/bin/sudo -s # or sudo -i
to your login script (like ~/.profile) or shell init files (like
~/.bashrc). |
|
| Back to top |
|
 |  |
External

Since: Jul 22, 2004 Posts: 4
|
(Msg. 8) Posted: Wed Jul 01, 2009 7:20 am
Post subject: Re: giving root access [Login to view extended thread Info.] Archived from groups: per prev. post (more info?)
|
|
|
zix <zixenus.RemoveThis@gmail.com> wrote:
>> Set the user's uid to 0? Why bother with different users in that case though?
>>
>> <insert the usual many paragraphs about why multiple users
>> with uid=0 is a very bad idea and shouldn't be done>
>
> thanks Philip for the help..i will download source for usermod and
> then use it on my target. i am using busybox binary which does not
> have the usermod support
You could just edit the passwd file?
- Philip
--
Philip Paeps Please don't email any replies
philip.RemoveThis@paeps.cx I follow the newsgroup.
<Mortuus47> Me: I'm worried about my Debian box, it's not working
<Mortuus47> My mum: If you'd said that earlier, I'd have got you an
appointment at the doctor's |
|
| Back to top |
|
 |  |
External

Since: Apr 25, 2007 Posts: 134
|
(Msg. 9) Posted: Thu Jul 02, 2009 2:41 am
Post subject: Re: giving root access [Login to view extended thread Info.] Archived from groups: per prev. post (more info?)
|
|
|
On Jul 1, 1:49 am, zix <zixe....DeleteThis@gmail.com> wrote:
> oops, then i dont want in that way..i want a user who has full access
> rites as root.how do i do that?no sudo...and yes, i do understand the
> security risks, so please no advice why i should not give fll root
> access to users
> i have tried addgroup...it didnt help..any other ways of doing that?
You need to tell us the problem you're attempting to solve, not your
proposed solution. Odds are, other people have encountered the problem
you are having and know a good solution to it. But we can't help you
unless we know what your problem is.
For example, if the problem is that you have a headache, and you think
that limes will cure it, you might ask us, "How can I get the limes
into my head?". There is no way we could tell from that the answer is
"Aspirin will cure your headache."
So you need to tell us the problem, because your proposed solution is
likely wrong -- as you already seem to know.
DS |
|
| Back to top |
|
 |  |
| Related Topics: | Access shared memory from kernel module - Hi All, I wanted to know if shared memory created in user space can be accessed from a loadable kernel module. Have no...
RFC3971 - Does anyone know if RFC3971 support is being developed for Linux? It does not seem to be implemented in the mainline..
Size 8 bit, 16 bit, 32 bit and 64 bit systems. - I need to find out what is the size of following data structures in 8 bit, 16 bit, 32 bit, and 64 bit systems. struct....
Size 8 bit, 16 bit, 32 bit and 64 bit systems. - I need to find out what is the size of following data structures in 8 bit, 16 bit, 32 bit, and 64 bit systems. struct....
Controlling UART transmission of bytes - I'm programming an ARM's UART that comes with a library implementing the standard unix termios interface. Regarding..
SU to root but still cannot access root commands - I login as an ordinary user and then SU to root without any problems. As root I try to use root commands such as.. |
|
You can post new topics in this forum You can reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|
|
|
 |
|
|