[NCLUG] Partition ownership

Bill Thorson bill at tstorms.com
Sat Oct 20 14:47:25 MDT 2012


Kerry,

I have always used ext3 or ext4 partitions and this is the way I handle the perms.  First I create the partition then I add a directory for the particular user and change perms for that user. Then, 
the user can have links to where ever they want in that directory.

Example:

    In /etc/fstab
        LABEL=Downloads   /mnt/downloads   ext4   defaults 0 0

    On this partition I've created a directory structure something like this:
        kerrym2:~$ ls -l /mnt/downloads
        drwx------ 2 root    root    16384 Oct 16 14:46 lost+found
        drwxr-xr-x 3 kerrym2 kerrym2  4096 Oct 16 15:10 Downloads

    Then that user, kerrym2, can do this:
        kerrym2:~$ ln -s /mnt/downloads/Downloads Downloads

Bill

On 10/20/2012 04:36 AM, Kerry Miller wrote:
> Hi People,
>
> I have known about chown for years I was hoping there was something I
> could put in to fstab to make this a one step adjustment.
>
> Kerry N0WIQ
> My web site URL is:
> http://mywebpages.comcast.net/n0wiq
>
>
> On 10/19/2012 02:54 PM, Aaron D. Johnson wrote:
>> In message<5081AF1E.6010306 at comcast.net>, N0WIQ writes:
>>> I have re-installed Fedora 17 on my quad core AMD laptop.  I have added
>>> to /etc/fstab:
>>> LABEL=Downloads        /home/kerrym2/Downloads        auto
>>> defaults,user    0 0
>>>
>>> This doese NOT give my user write privileges to the partition. how do I
>>> change this to give write privileges to the user?
>> After you have it mounted:
>>
>>     sudo chown kerrym2 /home/kerrym2/Download
>>
>> And then, as kerrym2, you can set the permissions using chmod (you'll
>> want something like "chmod u+w /home/kerrym2/Download").  I'll let the
>> Fedorans chime in about any SELinux labeling that might be needed.
>>
>> - Aaron
>> _______________________________________________
>> NCLUG mailing list       NCLUG at lists.nclug.org
>>
>> To unsubscribe, subscribe, or modify
>> your settings, go to:
>> http://lists.nclug.org/mailman/listinfo/nclug
>>
> _______________________________________________
> NCLUG mailing list       NCLUG at lists.nclug.org
>
> To unsubscribe, subscribe, or modify
> your settings, go to:
> http://lists.nclug.org/mailman/listinfo/nclug


-- 
/"Bill the son of Thor and grandfather of Odysseus"/



More information about the NCLUG mailing list