LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
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, 08: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, 08:16 AM   #2
yancek
LQ Guru
 
Registered: Apr 2008
Distribution: Slackware, Ubuntu, PCLinux,
Posts: 10,504

Rep: Reputation: 2490Reputation: 2490Reputation: 2490Reputation: 2490Reputation: 2490Reputation: 2490Reputation: 2490Reputation: 2490Reputation: 2490Reputation: 2490Reputation: 2490
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, 09: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, 10:14 AM   #4
T3RM1NVT0R
Senior Member
 
Registered: Dec 2010
Location: Internet
Distribution: Linux Mint, SLES, CentOS, Red Hat
Posts: 2,385

Rep: Reputation: 477Reputation: 477Reputation: 477Reputation: 477Reputation: 477
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, 10: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, 11:10 AM   #6
273
LQ Addict
 
Registered: Dec 2011
Location: UK
Distribution: Debian Sid AMD64, Raspbian Wheezy, various VMs
Posts: 7,680

Rep: Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373
I think it's worth asking -- why are you creating a folder under /home?
 
Old 07-19-2014, 06: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, 06:58 PM   #8
yancek
LQ Guru
 
Registered: Apr 2008
Distribution: Slackware, Ubuntu, PCLinux,
Posts: 10,504

Rep: Reputation: 2490Reputation: 2490Reputation: 2490Reputation: 2490Reputation: 2490Reputation: 2490Reputation: 2490Reputation: 2490Reputation: 2490Reputation: 2490Reputation: 2490
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, 02:42 AM   #9
273
LQ Addict
 
Registered: Dec 2011
Location: UK
Distribution: Debian Sid AMD64, Raspbian Wheezy, various VMs
Posts: 7,680

Rep: Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373
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, 06: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



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 10:15 PM
how to create directory in an existing directory with single command Tauatioti Linux - Newbie 2 11-30-2013 02:17 AM
mkdir : cannot create directory : no such file or directory patcheezy Linux - Newbie 6 05-13-2009 11:26 AM
[ProFTPd] Group permession JanDeMan Linux - Networking 1 04-17-2004 09:49 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

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

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
Open Source Consulting | Domain Registration