LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 05-04-2012, 12:18 AM   #1
Huamin
Member
 
Registered: May 2011
Posts: 562

Rep: Reputation: 12
mkdir


Hi,
Why do I get these?
[HuaMin@localhost rapidwiz]$ cd /u01
[HuaMin@localhost u01]$ mkdir OracleEBS
mkdir: cannot create directory `OracleEBS': Permission denied
[HuaMin@localhost u01]$

Thanks
 
Old 05-04-2012, 12:29 AM   #2
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 677Reputation: 677Reputation: 677Reputation: 677Reputation: 677Reputation: 677
You need to use sudo to run mkdir as root.

cd /u01
sudo mkdir OracleEBS

If you have several commands to run as root in a row, use "su" to change to root.
 
1 members found this post helpful.
Old 05-04-2012, 03:59 AM   #3
Huamin
Member
 
Registered: May 2011
Posts: 562

Original Poster
Rep: Reputation: 12
Many thanks. BTW, after I've created the folder using "su", how can I grant "write" privilege of the folder to other normal user as it seems currently the normal user account can't "write" into that?
 
Old 05-04-2012, 04:26 AM   #4
pan64
LQ Guru
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 13,501

Rep: Reputation: 4314Reputation: 4314Reputation: 4314Reputation: 4314Reputation: 4314Reputation: 4314Reputation: 4314Reputation: 4314Reputation: 4314Reputation: 4314Reputation: 4314
for example
sudo chmod 777 OracleEBS
 
Old 05-04-2012, 04:42 AM   #5
Huamin
Member
 
Registered: May 2011
Posts: 562

Original Poster
Rep: Reputation: 12
Thanks. Here is what I get

[HuaMin@localhost u01]$ sudo chmod 777 OracleEBS
[sudo] password for HuaMin:
HuaMin is not in the sudoers file. This incident will be reported.
[HuaMin@localhost u01]$

How to add the user to the sudoers file? After this, the user still can't write to that.
 
Old 05-04-2012, 04:54 AM   #6
pan64
LQ Guru
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 13,501

Rep: Reputation: 4314Reputation: 4314Reputation: 4314Reputation: 4314Reputation: 4314Reputation: 4314Reputation: 4314Reputation: 4314Reputation: 4314Reputation: 4314Reputation: 4314
So you created that dir with su, you need to change the right with the same way.
see visudo about changing the sudoers file
 
Old 05-04-2012, 05:42 AM   #7
jv2112
Member
 
Registered: Jan 2009
Location: New England
Distribution: Arch Linux
Posts: 719

Rep: Reputation: 103Reputation: 103
Lightbulb

http://linuxcommand.org/tlcl.php


I would suggest reading the book in the attached link. It will help with your understanding of these procesess.
 
  


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] mkdir: cannot creat directory. How to enable mkdir for user in usb dir? Foxbat1155 Linux - Newbie 13 02-16-2012 12:20 PM
mkdir -p ? shanenin Linux - Software 4 10-19-2011 12:41 PM
how to give options like '-v' for mkdir using system call mkdir() ? nehapawar Linux - Newbie 2 02-05-2010 03:13 AM
mkdir help... Linux~Powered Linux - Software 2 06-13-2004 12:27 PM
mkdir help ITJedi Linux - Software 1 05-14-2004 06:19 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 07:51 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration