LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu
User Name
Password
Ubuntu This forum is for the discussion of Ubuntu Linux.

Notices


Reply
  Search this Thread
Old 06-19-2013, 08:56 AM   #16
nsp
Member
 
Registered: Jul 2006
Location: China
Distribution: Slackware
Posts: 68

Original Poster
Rep: Reputation: 15

Quote:
Originally Posted by frieza View Post
it's only unsafe if the attacker is sitting in front of the machine, physical access trumps any and all security you place on a machine anyways, so don't sweat it.. yes you can set a grub password but that is only a relatively minor deterrent to a determined attacker who has stolen your machine.


ALL Linux machines have a recovery mode, whether or not it was conveniently placed in the grub menu or not is the only difference.
it's called single user mode and can be accessed by manually (temporarily) appending the word 'Single' to the end of the kernel line of the grub entry at boot, or worst comes to worst adding
Code:
 init=/bin/bash
instead of single then at the prompt typing
Code:
mount -oremount /
or if that doesn't even work, boot to live media
Code:
# mkdir /rescue
# mount /dev/sda1
# for dir in {proc,sys,dev}
> do
> mount --bind /$dir /rescue/$dir
> done
# chroot /rescue
replacing sda1 with your root volume
this creates an environment in which you have root control over your installed system, and if it works, can fix a non bootable system as a last resort to having to re-install

the above methods are exactly why physical access trumps any security
so again, in answer to your query, there is always a recovery mode of some nature available on any Linux system, even if it isn't conveniently stuck in the boot menu for you.

even modern macs, which are a bsd userspace on a mach microkernel has single user mode, not sure if they have chroot but that's off topic.
Thank you, frieza.
Very informative.
 
Old 06-22-2013, 10:44 AM   #17
nsp
Member
 
Registered: Jul 2006
Location: China
Distribution: Slackware
Posts: 68

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by TobiSGD View Post
If sudo is set up the way it is on Ubuntu systems (without restrictions which programs a user in the sudo group can run) than the user is in fact a full root user, only without access to the root account. There is no difference at all if you run a program with sudo or from a root account.
Quote:
Originally Posted by frieza View Post
sudo elevates privileges and uses the person's own password, su switches users and uses the root account, if enabled, unlike ubuntu and mac os X but i second tobi, with sudo set the way the 'buntu systems configure it by default, she IS a full root user since sudo was configured to allow all access.
I thought that sudo is same as a root user, until I made a mistake that I couldn't correct. ^_^
 
  


Reply

Tags
bug, chmod, sudo



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
Python: how do you accomplish "chmod 2755 somedir" - os.chmod not working as expected BrianK Programming 2 11-29-2010 03:03 PM
Logged in as "root"/Fedora 8 but get "Operation not permitted" when using "chmod etc gosunlee Linux - Newbie 7 02-10-2008 05:56 AM
Why doesn't a wildcard chmod change "dot" files/directories? jht2k Linux - General 1 08-09-2004 02:31 PM
Couldn't display "SMB:///" , No host "(Null)" could been Found?????? munkey Linux - Newbie 3 05-03-2004 04:30 PM
Couldn't display "SMB:///" , No host "(Null)" could been Found?????? help munkey Fedora 6 04-30-2004 06:04 PM

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

All times are GMT -5. The time now is 08:52 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
Open Source Consulting | Domain Registration