LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   New partition autorization (https://www.linuxquestions.org/questions/slackware-14/new-partition-autorization-751861/)

Bller 09-01-2009 01:43 PM

New partition autorization
 
How can i let my default normal user account read, write and modify a newly created partition?
I mean give permission to use it.

j_jerry 09-01-2009 01:54 PM

If what you want to do is just partion from within your normal account, then sudo would do, but still you need to know the root password

Bller 09-01-2009 02:00 PM

Quote:

Originally Posted by j_jerry (Post 3665770)
If what you want to do is just partion from within your normal account, then sudo would do, but still you need to know the root password

No no, i have already created a new partition with gparted from a root partition, now i want to give to my normal user account full permission to use that partition.

samac 09-01-2009 02:08 PM

You have to mount the partition to a fixed point such as /mnt/myuser and then
Code:

chown -R myuser /mnt/myuser
. If you want the partition up all the time you have to add it to /etc/fstab


samac

Bller 09-01-2009 02:14 PM

Quote:

Originally Posted by samac (Post 3665789)
You have to mount the partition to a fixed point such as /mnt/myuser and then
Code:

chown -R myuser /mnt/myuser
. If you want the partition up all the time you have to add it to /etc/fstab


samac

bller@Slack:~$ chown -R bller /mnt/bller
chown: cannot access `/mnt/bller': No such file or directory

but i think the partition is already mounted, `cose i can see and access it but can`t do anything IN it. Can`t create a directory, can`t copy anything in it ...

samac 09-01-2009 02:19 PM

What filesystem did you format the partition to, and what device is it? Did you make a folder /mnt/biler

samac

Bller 09-01-2009 02:24 PM

Quote:

Originally Posted by samac (Post 3665804)
What filesystem did you format the partition to, and what device is it?

samac

ext3 and it`s the same HDD 160GB Maxtor on wich Slackware is installed. I created 1 partition for swap and one 40GB partition on wich i installed Slack. I left 120gb as freespace. Today i installed Gpart and created a new partition ext3 from those 120GB of free space that were left. I can see and acces the partition, but i have to be logged in as root to be able to make directories, copy things IN it etc.

Bller 09-01-2009 02:28 PM

Oh and i have like /mnt/hd directory wich is empty. Here i could mount this new media right?
But how?

samac 09-01-2009 02:30 PM

mkdir /mnt/myuser
chown -R myuser /mnt/myuser
mount -t ext3 /dev/hda4 /mnt/myuser

The device may be different to the above, you may have to umount the partition first, the above commands are run as root.

samac

samac 09-01-2009 02:30 PM

Quote:

Oh and i have like /mnt/hd directory wich is empty. Here i could mount this new media right?
But how?
Yes.

See above and modify.

samac

Bller 09-01-2009 02:30 PM

The new partition created is /dev/hda4 120GB Linux ext3.

Bller 09-01-2009 02:32 PM

And the place it was mounted i think it was /media/disk-1

samac 09-01-2009 02:33 PM

Are you in the group disk?

samac

Bller 09-01-2009 02:35 PM

And i think i got it, when i right click the volume, i found permissions tab, so i think i could change them through my root account, and change the permissions to "Other" groups.
I`ll try it and tell you the result.

Bller 09-01-2009 02:37 PM

Quote:

Originally Posted by samac (Post 3665827)
Are you in the group disk?

samac

I think i am, i mean i added groups with the "up" button and selected what it gave me. And i think disk was in that default list. Anyway i`ll try my way for now.


All times are GMT -5. The time now is 05:52 AM.