[SOLVED] Mout partition without root PW

Forum rules
Before you post please read this

[SOLVED] Mout partition without root PW

Postby phileas on Thu Sep 06, 2012 3:57 am

Hello,
yesterday I installed for the first time Linux Mint 13 on a HP notebook 655 which came with SLED 11 SP2. It has a FAT 32 Partition with the HP tools and the SLED recovery image, one where Linux mint 13 is installed, and one big partition with 460 GB free and swap of course. I would like to use the big one for saving my files.

On the computer I have 2 accounts. One for me and one for my brother. My account was the first account I created, and I can mount the big partition. The account of my brother was created later. The problem is, that from this account I can't mount the big partition without the root password. Once I give the root password the partition is mounted and works very well.

I want to have the partition mounted from both accounts without giving a root PW, and then to create two folders on that, one for me and one for my brother and to configure the rights, that the one can't open the folder of the other.

How can I do that?

Thanks
Last edited by phileas on Tue Sep 11, 2012 7:32 am, edited 1 time in total.
phileas
Level 1
Level 1
 
Posts: 19
Joined: Thu Sep 06, 2012 2:55 am

Linux Mint is funded by ads and donations.
 

Re: Mout partition without root PW

Postby altair4 on Thu Sep 06, 2012 6:45 am

Please post the output of this command:
Code: Select all
sudo parted -l

That last character is a lower case "L".

And the output of this command:
Code: Select all
sudo blkid -c /dev/null
Please add a [SOLVED] at the end of your original subject header if your question has been answered and solved.
altair4
Level 16
Level 16
 
Posts: 6280
Joined: Tue Feb 03, 2009 10:27 am

Re: Mout partition without root PW

Postby phileas on Thu Sep 06, 2012 9:18 am

Hier is one

sudo parted -l

Model: ATA ST9500325AS (scsi)
Disk /dev/sda: 500GB
Sector size (logical/physical): 512B/512B
Partition Table: msdos

Number Start End Size Type File system Flags
1 1049kB 10,7GB 10,7GB primary fat32 diag
2 10,7GB 12,9GB 2147MB primary linux-swap(v1)
3 12,9GB 39,7GB 26,8GB primary ext4 boot
4 39,7GB 500GB 460GB primary ext3


and here the other

sudo blkid -c /dev/null
/dev/sda1: LABEL="HP_TOOLS" UUID="829E-9FD1" TYPE="vfat"
/dev/sda2: UUID="dd0c3093-613e-4164-89ce-528481532877" TYPE="swap"
/dev/sda3: UUID="bdc2f9a8-09b1-4b82-9110-b07a019af82a" TYPE="ext4"
/dev/sda4: UUID="73147129-873e-4845-acb6-c7378e0ac6e5" TYPE="ext3"


Thanks
phileas
Level 1
Level 1
 
Posts: 19
Joined: Thu Sep 06, 2012 2:55 am

Re: Mout partition without root PW

Postby altair4 on Thu Sep 06, 2012 1:08 pm

This is what I would do to fulfill what I think are your requirements:

[1] Have the 500gb partition automount on startup:

** Create a mount point:
Code: Select all
sudo mkdir /media/Data

** Then edit fstab as root:
Code: Select all
gksu gedit /etc/fstab

** And add the following line to the end of the file:
Code: Select all
UUID=73147129-873e-4845-acb6-c7378e0ac6e5 /media/Data ext3 defaults,noatime 0 2

** Run the following command to mount the partition:
Code: Select all
sudo mount -a


[2] Create 2 sub directories and make it available only to that user.

For example:

Create a folder for yourself:
Code: Select all
sudo mkdir /media/Data/phileas

Change ownership to you:
Code: Select all
sudo chown phileas /media/Data/phileas

Change permissions to allow access only to you:
Code: Select all
sudo chmod 0700 /media/Data/phileas

Only Phileas has access to that folder.
Please add a [SOLVED] at the end of your original subject header if your question has been answered and solved.
altair4
Level 16
Level 16
 
Posts: 6280
Joined: Tue Feb 03, 2009 10:27 am

Re: Mout partition without root PW

Postby phileas on Tue Sep 11, 2012 7:31 am

Thanx, it worked, but I had to install gedit.
phileas
Level 1
Level 1
 
Posts: 19
Joined: Thu Sep 06, 2012 2:55 am


Return to Mounting Partitions

Who is online

Users browsing this forum: No registered users and 1 guest