LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   Changing user preference (https://www.linuxquestions.org/questions/slackware-14/changing-user-preference-286136/)

kool_kid 02-04-2005 06:36 AM

Changing user preference
 
hiya ppl
im using slackware 10.0 on kde i want to change my user preference to "root" i.e i shd be able to view everything i want n yes i have the superuser id n p/w its how do i do it? plz help

DaWallace 02-04-2005 06:41 AM

heh?.... I don't get it.. what are you doing?

kool_kid 02-04-2005 06:44 AM

i created a user now that user isnt having permission to view some parts of directories like lilo.conf file n many others i want to make the user i created equal to superuser..i know i can change the permission of file but i dont want to do that and change the user i created preference to that of superuser so that i couldnt be prompt for p/w hope u got it this time

DaWallace 02-04-2005 06:58 AM

ah... you can use sudo for that...
it isn't the greatest idea but I'm not gonna bitch because I do it as well..
I think adding the user to the adm group will have an effect but I've never done it.. I have a friend who does that though..

but you'll have to edit /etc/sudoers, you're supposed to do this with visudo but I've never had problems editing it with pico or vi
read man sudo for help.. also, taking a look at your /etc/sudoers might make it obvious what you have to do

keefaz 02-04-2005 07:01 AM

There is a reason why only root can do administrative jobs, because root is the administrator...

It is well designed as this, want to edit a system file ? switch to root

Any other solution would lead to a security flaw, believe me. Anyway you don't need to edit system
config file often, so is it so tiring to input a password to access root privileges ?

d00msweek 02-04-2005 07:10 AM

and, Why whould you want that user to have the same rights as root when you have root ? :D

DaWallace 02-04-2005 07:16 AM

those.. though being good points.. are ones I choose to disregard.. simply for the sake of convenience.. I do this on my personal box and NOT my server.. also.. I wouldn't recommend asking questions like this in a public forum. you get much negative feedback.. and really .. it is deserved.. but.. it's still up to you..

there's always "su -"
it has never failed me..

keefaz 02-04-2005 07:56 AM

su - is secure, sudo can be secure too if you don't mess it like give access to dangerous
commands to all users (for example, passwd command)

I use sudo without password to poweroff or reboot my workstation for my part
(in this way, no need to setuid poweroff and reboot commands)

kool_kid 02-04-2005 09:14 AM

thnx ppl for ya help i got what i wanted and also i thgt of not posting this thred but where can i find my answer from??
Regards
kool_kid

DaWallace 02-04-2005 09:19 AM

my second post did have some answers..


All times are GMT -5. The time now is 06:40 AM.