LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Permission Denied.. (https://www.linuxquestions.org/questions/linux-newbie-8/permission-denied-562664/)

Julinho 06-18-2007 09:04 AM

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

Brad.Scalio@noaa.gov 06-18-2007 09:16 AM

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

Valkyrie_of_valhalla 06-18-2007 01:44 PM

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.

student04 06-18-2007 07:40 PM

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


All times are GMT -5. The time now is 11:40 AM.