Search Members Help

» Welcome Guest
[ Log In :: Register ]

Mini-ITX Boards Sale, Fanless BareBones Mini-ITX, Bootable 1G DSL USBs, 533MHz Fanless PC <-- SALE $200 each!
Get The Official Damn Small Linux Book. DSL Market , Great VPS hosting provided by Tektonic
 

[ Track this topic :: Email this topic :: Print this topic ]

reply to topic new topic new poll
Topic: root access issue, how do i stop it completely?< Next Oldest | Next Newest >
Traveller Offline





Group: Members
Posts: 8
Joined: Dec. 2005
Posted: Dec. 13 2005,15:15 QUOTE

i've got the root account secured with an eighteen-character alpha-numeric password. the right click menu in DSL still allows starting several programs as root without asking for a password. any "sudo" or "su" commands ask for the password. i have to type it in right too. but as user dsl i can start a root shell and delete files as root, even removing a defunct user directory. how do i disable the menu links that do this?

edit: this is running FluxBox, on DSL 2.0. now i feel silly (forgetting to give basic info) after having done informal tech support for StarCraft modders.
Back to top
Profile PM 
mikshaw Offline





Group: Members
Posts: 4856
Joined: July 2004
Posted: Dec. 13 2005,15:52 QUOTE

If those menu items still allow dsl to open a root shell, then "sudo commandname" is not asking for a password.  You can try the "visudo" command as root, and remove "NOPASSWD" from dsl's section of /etc/sudoers.  This will most likely cause some applications run from menu or icon to fail without a noticeable error, since (i think) stdout from some of them will go to the login shell.  Although i haven't tested it, i think emelfm as superuser will not work unless it is started from a terminal.  The root X shells should work, though, as well as installing mydsl apps from within emelfm.  Midnight Commander is a visual shell itself, so anything run from that should provide you a password prompt. One of these days i'm going to test it out to see just what the affects are =o)

--------------
http://www.tldp.org/LDP/intro-linux/html/index.html
Back to top
Profile PM WEB 
Traveller Offline





Group: Members
Posts: 8
Joined: Dec. 2005
Posted: Dec. 13 2005,16:01 QUOTE

thanks for the suggestion. i'll i'd like to remove those options from the menu completely though.
Back to top
Profile PM 
Traveller Offline





Group: Members
Posts: 8
Joined: Dec. 2005
Posted: Dec. 14 2005,15:40 QUOTE

i double-checked my comp. it does ask for the password when i attempt anything from a command-line. but it will launch some apps straight into root. like a shell. and emelfm. and midnight commander. is this due to the app that launches them is running as root and is therefore able to spawn an app with root privileges?
seriously, and su or sudo requires a password but that right-click menu will launch a root shell.

edit: i may have found something. the things that are giving the problem are apparently part of fluxbox's menu. after finding out what to search for with Google, i've found some resources on how to alter the menu to remove certain options. i'll try it and report back. i love being able to change my comp.
Back to top
Profile PM 
Traveller Offline





Group: Members
Posts: 8
Joined: Dec. 2005
Posted: Dec. 15 2005,14:40 QUOTE

it was fluxbox's menu that allowed it. it's nice knowing that i can change the menu, but i don't know about letting it spawn root shells. i also couldn't get into sudoers. i only have dsl and root as users. anyway, problem solved by "customizing" (read: deleting sections of) the menu.
Back to top
Profile PM 
4 replies since Dec. 13 2005,15:15 < Next Oldest | Next Newest >

[ Track this topic :: Email this topic :: Print this topic ]

 
reply to topic new topic new poll
Quick Reply: root access issue

Do you wish to enable your signature for this post?
Do you wish to enable emoticons for this post?
Track this topic
View All Emoticons
View iB Code