Results 1 to 4 of 4

Thread: Can't create directory

  1. #1
    Join Date
    Nov 2004
    Beans
    93

    Can't create directory

    Am I missing something here? I want the normal user jongi to be able to have write access to /data

    Code:
    root@xububtu-desktop:~# cat /etc/fstab | grep data
    # /data was on /dev/sda8 during installation
    UUID=b555bd06-30f1-4f1d-a739-c4bfac62d4f4 /data           ext4    relatime,user,rw        0       2
    root@xububtu-desktop:~# umount /data/
    root@xububtu-desktop:~# mount -a
    root@xububtu-desktop:~# exit
    logout
    jongi@xububtu-desktop:~$ mkdir /data/profile
    mkdir: cannot create directory `/data/profile': Permission denied

  2. #2
    Join Date
    Oct 2005
    Location
    Jacksonville, FL
    Beans
    29,420

    Re: Can't create directory

    Why not just modify the entry for /dev/sda8 to make it look like this in /etc/fstab?

    Code:
    UUID=b555bd06-30f1-4f1d-a739-c4bfac62d4f4 /data           ext4    relatime        0       2
    Then, change the ownership of /data from root to your login name so you can write to it anytime you want.

    Code:
    sudo chown -R jongi:jongi /data
    mkdir /data/profile
    ls -la /data
    In the world of Linux, who needs Windows and Gates...

    Got most of my golden beans at an auction on eBay (with a couple of free drinks).

  3. #3
    Join Date
    Nov 2004
    Beans
    93

    Re: Can't create directory

    i intend on having a numer of distros installed that will write to that partition. i like to think that fstab can set it such that i can state any user can write to a partition.

    the course of making sure that every user in each distro has the same UUID creates a lot of work.

  4. #4
    Join Date
    Oct 2005
    Location
    Jacksonville, FL
    Beans
    29,420

    Re: Can't create directory

    Code:
    sudo chmod 777 /data
    mkdir /data/profile
    In the world of Linux, who needs Windows and Gates...

    Got most of my golden beans at an auction on eBay (with a couple of free drinks).

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •