LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > DamnSmallLinux
User Name
Password
DamnSmallLinux This forum is for the discussion of DamnSmallLinux.

Notices


Reply
  Search this Thread
Old 08-22-2009, 04:54 AM   #1
davidev
LQ Newbie
 
Registered: Aug 2009
Posts: 3

Rep: Reputation: 0
Another Root access issue...


Hi all,

I have some problems while trying to gain root access in DLS. I made an HD install, so my old notebook is completely running with that wonderful OS.

The problems is not what you're thinking: is not that I can't access as root... but that I can access as root WHITOUT password, as every sudo command is executed with no root password request.

I changed the root password with "passwd", then created a new user account on the machine called "davide". Then I connected to the "davide" user on the DSL machine with an ssh connection from another notebook I have in my house... then I typed

Code:
sudo shutdown -h now
and the DSL machine went down without asking for root password first... I think this is a big security problem, isn't it?

Did I missed some setup?

Thanks,
Davide.
 
Old 08-22-2009, 05:43 AM   #2
repo
LQ 5k Club
 
Registered: May 2001
Location: Belgium
Distribution: Arch
Posts: 8,528

Rep: Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899
AFAIK, when you install DSL to your HD, after the first reboot it will ask for a root password.
 
Old 08-22-2009, 09:06 AM   #3
davidev
LQ Newbie
 
Registered: Aug 2009
Posts: 3

Original Poster
Rep: Reputation: 0
Hello repo,

Quote:
Originally Posted by repo View Post
AFAIK
what's AFAIK?

Quote:
when you install DSL to your HD, after the first reboot it will ask for a root password.
When I installed DSL to the hd it asked me for a root password and for a user/pass in order to log on the system with no root privileges. I did it, so I set the password for root, then created the "dsl" user with his password... this is my usual login username.

I also created a new user with the "adduser" command, but nothing changed (I thought maybe the "dsl" user had some privilege). The clue is that when I type

Code:
davide@tty1[davide]$ su root
it prompts me for the root password, but when I type

Code:
davide@tty1[davide]$ sudo command
it executes any command without asking me the root password first.
 
Old 08-22-2009, 12:06 PM   #4
repo
LQ 5k Club
 
Registered: May 2001
Location: Belgium
Distribution: Arch
Posts: 8,528

Rep: Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899
AFAIK
As Far As I Know

Seems to be the way DSL works
From the Getting started guide:
http://www.damnsmalllinux.org/getting_started.html
Quote:
Administrator / SuperUser / Root:

Each system requires some command to be run as the administrator. In DSL, such user is called root. To get root privileges to run a specific command, just proceed the command with the word sudo (e.g., sudo dsl-hdinstall).
To become the super user, then use the command sudo su. Normally, you should not run your system as root.
 
Old 08-22-2009, 02:13 PM   #5
davidev
LQ Newbie
 
Registered: Aug 2009
Posts: 3

Original Poster
Rep: Reputation: 0
It simply seems to be the way every GNU/Linux system works... doesn't tell anything on root password...
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Disable remote root access but allow local root access-- possible? bskrakes Linux - Security 4 02-21-2019 04:02 PM
why can't root level access do everything root account can do? newbiesforever Linux - General 6 09-22-2008 10:02 AM
How to access Access root(/) hard drive attached in Windows XP machine farrukhndm Linux - Software 2 07-29-2008 12:52 PM
Gentoo Root Issue. Cannot SU or logon to Root Battousai Linux - Distributions 8 11-14-2006 05:54 PM
Sendmail /etc/mail/access issue (access.db) CactusS4 Linux - General 0 05-22-2004 07:59 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > DamnSmallLinux

All times are GMT -5. The time now is 07:13 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration