Results 1 to 5 of 5

Thread: mkdir: permission denied help

  1. #1
    Join Date
    May 2011
    Beans
    2
    Distro
    Ubuntu 11.04 Natty Narwhal

    Question mkdir: permission denied help

    Hello everyone, scrub here,
    I'm having issues regarding permissions when I try to create a directory from /home.

    user@ubuntu:/home$ mkdir playground
    mkdir: cannot create directory 'playground': Permission denied

    I've changed my user settings to admin and i still can't create a directory, I would really appreciate it if i can get some info on how I could resolve this problem.
    Thanks.

  2. #2
    Join Date
    Jan 2011
    Location
    Portland, OR
    Beans
    2,254
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: mkdir: permission denied help

    Unless you are in your home direrctory:

    Code:
    mkdir /home/hedgehog/newplace
    you will need to create the direcroty using 'sudo':

    Code:
    sudo mkdir /home/newplace
    The Hedge

    Look at all those flashing lights! I'll take one!

    The Ubuntu Forums - our little Global Village

  3. #3
    Join Date
    May 2007
    Beans
    Hidden!
    Distro
    Ubuntu

    Re: mkdir: permission denied help

    This question is best responded to by asking you a question - why would you want to create a directory directly in /home? This is for user's home directories. If you want to make a folder for yourself to access, you should create it in your own personal home directory, e.g. in "/home/dmster".
    Code:
    cd ~
    mkdir playground
    Now you have "/home/dmster/playground".

  4. #4
    Join Date
    Feb 2010
    Location
    Washington, DC Area
    Beans
    Hidden!
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: mkdir: permission denied help

    Quote Originally Posted by dmster^ View Post
    Hello everyone, scrub here,
    I'm having issues regarding permissions when I try to create a directory from /home.

    user@ubuntu:/home$ mkdir playground
    mkdir: cannot create directory 'playground': Permission denied

    I've changed my user settings to admin and i still can't create a directory, I would really appreciate it if i can get some info on how I could resolve this problem.
    Thanks.
    If I understand you correctly, you were trying to create a folder in the /home directory not /home/user-name directory. try
    Code:
    cd /home/your-user-name && mkdir playground
    see if that works.

  5. #5
    Join Date
    May 2011
    Beans
    2
    Distro
    Ubuntu 11.04 Natty Narwhal

    Re: mkdir: permission denied help

    Thank you.
    I was following The Linux Command Line by Shotts and it didn't specify that i couldn't make it directly in /home.
    but /home/me/playground worked.

Tags for this Thread

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
  •