LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 06-18-2007, 10:04 AM   #1
Julinho
LQ Newbie
 
Registered: Jun 2007
Posts: 1

Rep: Reputation: 0
Permission Denied..


Hey guys... here is the problem...
Im logged in as "LSF" and when i try to create a directory in "/mnt/lfs/" i have "Permission Denied"... and when i try the same thing in "/mnt/lfs/sources" i can do it... so... how can i create the directory where i want to?! this permission thing...how can i get it?!

cya
 
Old 06-18-2007, 10:16 AM   #2
Brad.Scalio@noaa.gov
Member
 
Registered: Jan 2007
Location: Washington DC
Distribution: RedHat & spins ... Fedora, CentOS, Mandriva
Posts: 82

Rep: Reputation: 15
Quote:
Originally Posted by Julinho
Hey guys... here is the problem...
Im logged in as "LSF" and when i try to create a directory in "/mnt/lfs/" i have "Permission Denied"... and when i try the same thing in "/mnt/lfs/sources" i can do it... so... how can i create the directory where i want to?! this permission thing...how can i get it?!

cya

post the output of:

# cat /etc/fstab
# getfacl /mnt /mnt/ifs
# ls -ltr /mnt;ls -ltr /mnt/ifs
 
Old 06-18-2007, 02:44 PM   #3
Valkyrie_of_valhalla
Member
 
Registered: Jan 2006
Location: Romania
Distribution: Suse 12.0, Slackware 12.1, Debian, Ubuntu, Gentoo
Posts: 301

Rep: Reputation: 30
quick answer: try

sudo mkdir /folder/you/want

If you want to be able to edit it as a regular user as well, try:

sudo chmod 666 /folder/you/want

666 means everybody is allowed to read and write from/to that directory.
 
Old 06-18-2007, 08:40 PM   #4
student04
Member
 
Registered: Jan 2004
Location: Georgia
Distribution: OS X, CentOS
Posts: 669

Rep: Reputation: 34
Quote:
Originally Posted by Valkyrie_of_valhalla
quick answer: try

sudo mkdir /folder/you/want

If you want to be able to edit it as a regular user as well, try:

sudo chmod 666 /folder/you/want

666 means everybody is allowed to read and write from/to that directory.
That might be unsafe to give everyone read and write access, since Julinho is creating a directory in the /mnt folder (possibly mounting a drive or device). Better would be
Code:
sudo chmod 700 /folder/you/want

Quote:
Originally Posted by Julinho
Hey guys... here is the problem...
Im logged in as "LSF" and when i try to create a directory in "/mnt/lfs/" i have "Permission Denied"... and when i try the same thing in "/mnt/lfs/sources" i can do it... so... how can i create the directory where i want to?! this permission thing...how can i get it?!

cya
You have permissions to edit the folder /mnt/lfs/sources, but not the folder /mnt/lfs. As Valkyrie_of_valhalla said, create a folder with the 'sudo' command (creating the folder as root). If you will need to have access to the folder with your personal user account, then change the permissions to '700', as Valkyrie_of_valhalla mentioned.

Try reading through this tutorial I found online, it might help clarify some things for you:
http://catcode.com/teachmod/chmod_1.html

-AM
 
  


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
can't execute c++ binaries, "permission denied"... even though permission is 777 SerfurJ Programming 14 02-20-2009 05:50 AM
'permission denied" inspite of right permission flags on network drive anirudhvij Linux - Enterprise 8 05-22-2007 06:57 AM
./ permission denied? DanTaylor Linux - General 5 03-14-2006 12:15 PM
Permission Denied PacMansRancor Linux - Newbie 3 09-29-2005 05:45 PM
su: permission denied Tumunzahar Linux - General 3 02-01-2005 03:04 PM


All times are GMT -5. The time now is 05:53 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