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
Pages: (6) </ 1 2 3 4 5 [6] >/

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

new topic new poll
Topic: DSL v3.4< Next Oldest | Next Newest >
Alrasch Offline





Group: Members
Posts: 5
Joined: Aug. 2007
Posted: Aug. 11 2007,21:09 QUOTE

As far as I have understood, there are two users implemented. One called dsl, and one called root (a superuser I presumed). The user dsl has restricted privileges (standard user).
I presumed that the command sudo would invoke root privileges... which I thought  should be password protected (what's the security if anyone can do this on my system).
If this is not the case, then what is sudo for?
And more important: If it says "do ... as root" what am I to do then (or how)?

Looks as I have still a lot of basic stuff to learn (I was studying the DSL wiki before writing this. Well, life is what happens when you have other plans - I am now considering whether to make a more compehensive wiki for non-linux users  :)  )
Back to top
Profile PM YIM 
tinker Offline





Group: Members
Posts: 33
Joined: May 2007
Posted: Aug. 12 2007,20:58 QUOTE

Alrasch,
You presumed *somewhat* correctly as long as you are not talking about an install of DSL where one has added other users. In that case those other users would be restricted users, unless and until, one gave them more permissions. Otherwise, yes, just root and dsl but dsl is in the sudoers list with permission for all with no password necessary and root has no password so you can't log on as root, unless one has changed it to act differently DSL automatically logs you on as user dsl.

Sudo works on DSL just like it works on other GNU/Linuxes, gives root privileges for the session invoked by the command it is used with.

And, yes, there is some security risk with this, as there always is with the choice between "security" and "ease of use". However, when one boots a live CD that disappears from the system when one shuts down, a large part of the pertinent "security" comes from the person at the keyboard and who they let touch the system. Unless one has a persistent filesystem, even any successful attack would be gone at the next boot. Ports aren't open by default. Some of the current popular GNU/Linux distros always put the regular user in sudoers by default, while, for example, the Debian distro does not. There is considerable debate around the sudo command and security in the open source community, sometimes that debate becomes heated and we don't need to reproduce that here.

How to use it? As you appear to understand, sudo (do as root) foo (substitute whatever command you want to do as superuser). For example: if you entered in a terminal, sudo beaver, it would open beaver (notepad type application) as root, thus you could edit files that were owned by root.

It seems like you would be a good candidate for Robert's new book, where I imagine all the aspects of his choices for DSL are discussed. On the other hand, you're a coder, so you could probably discover all this on your own as I did.
Back to top
Profile PM 
26 replies since July 03 2007,05:22 < Next Oldest | Next Newest >

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

Pages: (6) </ 1 2 3 4 5 [6] >/
new topic new poll
Quick Reply: DSL v3.4

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