LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 07-19-2014, 09:11 AM   #1
Bill.harlod
LQ Newbie
 
Registered: Jul 2014
Posts: 5

Rep: Reputation: Disabled
CANNOT create a directory (PERMESSION ISSUES)


I'm a new linux user and I'm having problems while creating any directory. It says:
"mkdir: cannot create directory `Bill': Permission denied"

Any help ?
 
Old 07-19-2014, 09:16 AM   #2
yancek
LQ Guru
 
Registered: Apr 2008
Distribution: PCLinux, Slackware
Posts: 6,872

Rep: Reputation: 1249Reputation: 1249Reputation: 1249Reputation: 1249Reputation: 1249Reputation: 1249Reputation: 1249Reputation: 1249Reputation: 1249
If you are trying to create a directory outside your /home/user directory, you usually need root/administrator permissions. The specific method varies a little depending upon which Linux you are using. Which Linux distribution of Linux are you using? and where (what directory) are you trying to create it in?
 
Old 07-19-2014, 10:59 AM   #3
Bill.harlod
LQ Newbie
 
Registered: Jul 2014
Posts: 5

Original Poster
Rep: Reputation: Disabled
Ubuntu 12.10

I am using Ubuntu 12.10 and I'm trying to create it in the "home" directory.
 
Old 07-19-2014, 11:14 AM   #4
T3RM1NVT0R
Senior Member
 
Registered: Dec 2010
Location: Internet
Distribution: Linux Mint, SLES, CentOS, Red Hat
Posts: 2,385

Rep: Reputation: 476Reputation: 476Reputation: 476Reputation: 476Reputation: 476
If you are creating a directory under /home/<your_user_account/ directory then it won't say permission denied. However, if you are trying to create directly under /home and then it will say permission denied because only root can do that. As you said that you are using Ubuntu I am assuming the account that you are using is the one that was created during the install. So instead of mkdir you can try using
Code:
sudo mkdir <directory name>
 
Old 07-19-2014, 11:38 AM   #5
Bill.harlod
LQ Newbie
 
Registered: Jul 2014
Posts: 5

Original Poster
Rep: Reputation: Disabled
Bill

Yeah, you're right. Now it works. Thank you very much
 
Old 07-19-2014, 12:10 PM   #6
273
LQ Addict
 
Registered: Dec 2011
Location: UK
Distribution: Debian Sid AMD64, Raspbian Wheezy, various VMs
Posts: 6,011

Rep: Reputation: 1621Reputation: 1621Reputation: 1621Reputation: 1621Reputation: 1621Reputation: 1621Reputation: 1621Reputation: 1621Reputation: 1621Reputation: 1621Reputation: 1621
I think it's worth asking -- why are you creating a folder under /home?
 
Old 07-19-2014, 07:28 PM   #7
Bill.harlod
LQ Newbie
 
Registered: Jul 2014
Posts: 5

Original Poster
Rep: Reputation: Disabled
Bill

It's my first time working on linux OS. So I'm just new to the whole idea of this system. That's why I tried to create a directory in the home (Which is the one that is open initially)
 
Old 07-19-2014, 07:58 PM   #8
yancek
LQ Guru
 
Registered: Apr 2008
Distribution: PCLinux, Slackware
Posts: 6,872

Rep: Reputation: 1249Reputation: 1249Reputation: 1249Reputation: 1249Reputation: 1249Reputation: 1249Reputation: 1249Reputation: 1249Reputation: 1249
Quote:
I am using Ubuntu 12.10
Ubuntu 12.10 has not been supported since May, 2014 so you won't have updates of software available. Using 12.04 which is supported until April, 2017 or 14.04 which is supported until April, 2019 might be a better idea if your hardware can handle it.
 
Old 07-20-2014, 03:42 AM   #9
273
LQ Addict
 
Registered: Dec 2011
Location: UK
Distribution: Debian Sid AMD64, Raspbian Wheezy, various VMs
Posts: 6,011

Rep: Reputation: 1621Reputation: 1621Reputation: 1621Reputation: 1621Reputation: 1621Reputation: 1621Reputation: 1621Reputation: 1621Reputation: 1621Reputation: 1621Reputation: 1621
yancek makes a good point about using a supported version of Ubuntu.
Quote:
Originally Posted by Bill.harlod View Post
It's my first time working on linux OS. So I'm just new to the whole idea of this system. That's why I tried to create a directory in the home (Which is the one that is open initially)
If you want to create a directory to organise things you should be doing so in your own home directory which will be something like /home/bill and not straight in /home. The directory /home is where the individual home directories for users are created so unless you are doing so for a specific reason you should generally not create directories there.
Usually though when you open a terminal you start off in /home/bill and it's indicated by the prompt saying something like "bill@ubuntu:~$" where the "~" sign shows you are in your home directory and you can change to your home any time by typing "cd ~" without the quotes.
 
Old 07-20-2014, 07:49 AM   #10
Bill.harlod
LQ Newbie
 
Registered: Jul 2014
Posts: 5

Original Poster
Rep: Reputation: Disabled
Bill

Okay. Got it !
You were very helpful. Thank you!
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] how to create directory in an existing directory with single command Tauatioti Linux - Newbie 21 08-05-2014 11:15 PM
how to create directory in an existing directory with single command Tauatioti Linux - Newbie 2 11-30-2013 03:17 AM
mkdir : cannot create directory : no such file or directory patcheezy Linux - Newbie 6 05-13-2009 12:26 PM
[ProFTPd] Group permession JanDeMan Linux - Networking 1 04-17-2004 10:49 AM


All times are GMT -5. The time now is 10:44 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration