openSUSE Forums > Install/Boot/Login » ENABLE ROOT PARTITION R/W ACCESS WITHOUT PASSWORD

Go Back   openSUSE Forums > Install/Boot/Login
Forums FAQ Members List Search Today's Posts Mark Forums Read


Install/Boot/Login Questions about installation, login, boot issues, partitioning, file systems, software that runs at boot (GRUB, LILO, boot scripts)

Reply
Page 1 of 2 1 2
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 25-Apr-2009, 17:30
Puzzled Penguin
 
Join Date: Jun 2008
Posts: 21
4joey1 hasn't been rated much yet
Unhappy ENABLE ROOT PARTITION R/W ACCESS WITHOUT PASSWORD

Hallo!I have used openSUSE 10.3 for a year now.

For me to edit a file that’s within the root partition e.g. /etc/fstab , I am forced to log in as super user via File System Manager-Super User mode.I would like to copy my files to or edit files in my root partition without having to log in to my root partition as a super user so that it will be as easy to have read-write access to my root partition just like in my home partition.

How can I achieve this?Please respond soon.Thanks in advance.
Reply With Quote
  #2 (permalink)  
Old 25-Apr-2009, 17:32
Wise Penguin
 
Join Date: Mar 2009
Posts: 1,824
Akoellh is a reputation jewel in the roughAkoellh is a reputation jewel in the roughAkoellh is a reputation jewel in the roughAkoellh is a reputation jewel in the roughAkoellh is a reputation jewel in the rough
Default Re: ENABLE ROOT PARTITION R/W ACCESS WITHOUT PASSWORD

You don't and that's a **** good thing, too.

Giving a normal user full access to "root-only" files is not a security hole, it's more like a "security crater", 2000 km diameter and 50 km deep.
__________________
“Never attribute to malice that which can be adequately explained by stupidity.” (R.J. Hanlon)
Reply With Quote
  #3 (permalink)  
Old 25-Apr-2009, 20:28
BenderBendingRodriguez's Avatar
Wise Penguin
 
Join Date: Jun 2008
Posts: 1,653
BenderBendingRodriguez hasn't been rated much yet
Default Re: ENABLE ROOT PARTITION R/W ACCESS WITHOUT PASSWORD

If there would be any malware then nothing would stop it from attaching/patching some system files just because you had read/write access.

This is unthinkable. Normally if anything would happen to your pc then it would only be files on your home partition. And it should stay like that always.

Anyway how often do you need to write anything on a root partition?? It's not like you leave files there do you?
__________________
How does a linux geek make love??

- unzip; strip; touch; finger; mount; fsck; more; yes; umount; sleep;
Reply With Quote
  #4 (permalink)  
Old 26-Apr-2009, 01:10
Puzzled Penguin
 
Join Date: Jun 2008
Posts: 21
4joey1 hasn't been rated much yet
Default Re: ENABLE ROOT PARTITION R/W ACCESS WITHOUT PASSWORD

Hallo!I have used openSUSE 10.3 for a year now.

For me to edit a file that’s within the root partition e.g. /etc/fstab , I am forced to log in as super user via File System Manager-Super User mode.I would like to copy my files to or edit files in my root partition without having to log in to my root partition as a super user so that it will be as easy to have read-write access to my root partition just like in my home partition?

I am aware of the security merits of a password controlled root partition has but my problem is as follows.

I have a very small home partition (only 1 GB) since my machine has both openSUSE 10.3 and Windows and my HDD drive is only 80GB.

My root partition has 5 GB free space

I would like to install software e.g. Oracle for Linux.Naturally I would want it to be installed on my freer root partition but during installation its default installation path is in the home partition.If I try to change the path to a root partition,I get the error message that I do not have rights to place my files on the root partition.Of course when I try to install in the default home partition,I get the error message disk full.

How thus can I install software from root partition?Please respond soon.Thanks in advance.
Reply With Quote
  #5 (permalink)  
Old 26-Apr-2009, 01:15
caf4926's Avatar
Global Moderator
 
Join Date: Jun 2008
Location: The English Lake District. UK - GMT/BST
Posts: 12,823
caf4926 has a brilliant future with this reputationcaf4926 has a brilliant future with this reputationcaf4926 has a brilliant future with this reputationcaf4926 has a brilliant future with this reputationcaf4926 has a brilliant future with this reputationcaf4926 has a brilliant future with this reputationcaf4926 has a brilliant future with this reputationcaf4926 has a brilliant future with this reputationcaf4926 has a brilliant future with this reputationcaf4926 has a brilliant future with this reputationcaf4926 has a brilliant future with this reputation
Send a message via MSN to caf4926
Default Re: ENABLE ROOT PARTITION R/W ACCESS WITHOUT PASSWORD

You have already had correct advice. Don't ignore it.
It's possible you could shrink root a little to expand /home
use the partitioner in Yast

If in doubt
post a screenshot of what you see there

or at the very least the su output of:

Code:
fdisk -l
__________________
Box: Fedora 11 | (KDE4.3.2) | M2N4-SLI | AMD 64 X2 5200+ | nVidia 8500GT | 4GB RAM
Lap: openSUSE 11.2 | Celeron 550 | (KDE4.3.3)"3" | Intel 965 GM | Lenovo R61e | 3GB RAM
Reply With Quote
  #6 (permalink)  
Old 26-Apr-2009, 02:04
swerdna's Avatar
Global Moderator
 
Join Date: Mar 2008
Location: Oz
Posts: 4,843
swerdna is a reputation jewel in the roughswerdna is a reputation jewel in the roughswerdna is a reputation jewel in the roughswerdna is a reputation jewel in the roughswerdna is a reputation jewel in the rough
Default Re: ENABLE ROOT PARTITION R/W ACCESS WITHOUT PASSWORD

@caf4926 -- not while mounted
Quote:
It's possible you could shrink root a little to expand /home
use the partitioner in Yast
__________________
Drop in and visit some time.
Reply With Quote
  #7 (permalink)  
Old 26-Apr-2009, 02:06
caf4926's Avatar
Global Moderator
 
Join Date: Jun 2008
Location: The English Lake District. UK - GMT/BST
Posts: 12,823
caf4926 has a brilliant future with this reputationcaf4926 has a brilliant future with this reputationcaf4926 has a brilliant future with this reputationcaf4926 has a brilliant future with this reputationcaf4926 has a brilliant future with this reputationcaf4926 has a brilliant future with this reputationcaf4926 has a brilliant future with this reputationcaf4926 has a brilliant future with this reputationcaf4926 has a brilliant future with this reputationcaf4926 has a brilliant future with this reputationcaf4926 has a brilliant future with this reputation
Send a message via MSN to caf4926
Default Re: ENABLE ROOT PARTITION R/W ACCESS WITHOUT PASSWORD

Quote:
Originally Posted by swerdna View Post
@caf4926 -- not while mounted
quite correct @swerdna
maybe a live cd or parted magic?
__________________
Box: Fedora 11 | (KDE4.3.2) | M2N4-SLI | AMD 64 X2 5200+ | nVidia 8500GT | 4GB RAM
Lap: openSUSE 11.2 | Celeron 550 | (KDE4.3.3)"3" | Intel 965 GM | Lenovo R61e | 3GB RAM
Reply With Quote
  #8 (permalink)  
Old 26-Apr-2009, 06:05
BenderBendingRodriguez's Avatar
Wise Penguin
 
Join Date: Jun 2008
Posts: 1,653
BenderBendingRodriguez hasn't been rated much yet
Default Re: ENABLE ROOT PARTITION R/W ACCESS WITHOUT PASSWORD

If you want to install something in root partition then you must run it with root privileges. Otherwise good software/installer will try to install it in /home where it has write permissions.
__________________
How does a linux geek make love??

- unzip; strip; touch; finger; mount; fsck; more; yes; umount; sleep;
Reply With Quote
  #9 (permalink)  
Old 26-Apr-2009, 06:12
Flux Capacitor Penguin
 
Join Date: Jun 2008
Location: GMT+10
Posts: 5,200
ken_yap has a reputation to be proud ofken_yap has a reputation to be proud ofken_yap has a reputation to be proud ofken_yap has a reputation to be proud ofken_yap has a reputation to be proud ofken_yap has a reputation to be proud ofken_yap has a reputation to be proud ofken_yap has a reputation to be proud ofken_yap has a reputation to be proud ofken_yap has a reputation to be proud of
Default Re: ENABLE ROOT PARTITION R/W ACCESS WITHOUT PASSWORD

Quote:
Originally Posted by caf4926 View Post
quite correct @swerdna
maybe a live cd or parted magic?
No, you were right the first time. fdisk -l is ok while filesystems are mounted, all it does is read and display the partition table. Modification is another matter though.
Reply With Quote
  #10 (permalink)  
Old 26-Apr-2009, 09:46
hcvv's Avatar
Wise Penguin
 
Join Date: Jun 2008
Location: Netherlands
Posts: 1,891
hcvv 's reputation will be famous soon enoughhcvv 's reputation will be famous soon enoughhcvv 's reputation will be famous soon enough
Default Re: ENABLE ROOT PARTITION R/W ACCESS WITHOUT PASSWORD

Hello 4joey1,

In addition to all the good advice given above I might throw in some remarks, because my idea is that you have some misconseptions. When I am wrong, I do appoligize.

The root partition has nothing to do with the user root (except for their shared name). The root partition is the disk partition that is mounted on /. And that is at the root of the Unix/Linux directory tree. You do not need a password to read and/or write there.

You do need the root password when you want to access directories/files that are not owned by you, but by root (and root not giving the allowance to do the r/w by e.g. setting the access bits for 'world').

Now when you have a seperate /home partition, most directories/files that are on the / filesystem are owned by root and not writable by normal users. This is because of ownership and access bits, not because of them being on the root filesystem.

Back to your problem.
I understand that your /home partition is getting full, but that your / partition is still having space enough. Apart from the tedious task of shrinking/expanding filesystems, a (maybe only temporary) solution might be found by using space on / for part of your user files and making a symbolic link to it.

Example. User happy is running out of space and gathers a lot of music file in /home/happy/Music/. We want to move this to the root partition so that more music can be added and also more space for others things becomes available on /home/happy/.

As root create a directory on the root partition and make happy the owner:
Code:
mkdir /happy-needs-more-space
chown happy:users /happyneeds-more-space
Now happy can do:
Code:
cd                       # to your home directory
mv Music /happy-needs-more-space/  #takes some time because it will copy all music
ln -s /happy-needs-more-space/Music Music  #makes the link from your well know place to where it is now
And happy is back into bussiness.

I hope you get the principle behind it. Of course after this your root partition does contain userdata and this should be taken into acount when installing a new system.
__________________
Henk van Velden
Reply With Quote
Reply
Page 1 of 2 1 2

Bookmarks


Thread Tools
Display Modes

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




 

Search Engine Friendly URLs by vBSEO 3.3.0 RC2