LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 01-28-2003, 02:32 AM   #1
face_master
Member
 
Registered: Jan 2003
Location: Australia
Distribution: Mandrake 9.1
Posts: 71

Rep: Reputation: 16
chmod problem


Ok, in console, I change to root by typing su <enter> password. Then I type chmod -R 777 dir and it ouputs "Operation not permitted" for each file in that folder. What am I doing wrong?

Thanks
 
Old 01-28-2003, 02:40 AM   #2
MasterC
LQ Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu ; CentOS ; Raspbian
Posts: 12,613

Rep: Reputation: 69
su -

Also, try doing it on one file. Just pick 1 at random, then:
chmod 777 filename

See if it gives you operation not permitted.

Cool
 
Old 01-28-2003, 02:50 AM   #3
face_master
Member
 
Registered: Jan 2003
Location: Australia
Distribution: Mandrake 9.1
Posts: 71

Original Poster
Rep: Reputation: 16
Gives me the same thing even by doing what you said. It says:
Quote:
(requested: 0777, actual: 0775): Operation not permitted
 
Old 01-28-2003, 02:53 AM   #4
MasterC
LQ Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu ; CentOS ; Raspbian
Posts: 12,613

Rep: Reputation: 69
What are your permissions on the directory itself?

ls -l /path/to/directory

Try creating a blank file in there, then chmod that file:
touch /path/to/directory/testfile
chmod 777 /path/to/directory/testfile
ls -l /path/to/directory/testfile

See how that goes.

Cool
 
Old 01-28-2003, 03:02 AM   #5
face_master
Member
 
Registered: Jan 2003
Location: Australia
Distribution: Mandrake 9.1
Posts: 71

Original Poster
Rep: Reputation: 16
I have read and execute permissions for all files but no write permissions

// but no apps can access the files...I get no errors, they just wont open/play

Last edited by face_master; 01-28-2003 at 03:04 AM.
 
Old 01-28-2003, 03:05 AM   #6
MasterC
LQ Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu ; CentOS ; Raspbian
Posts: 12,613

Rep: Reputation: 69
What about the test file, did it work?
 
Old 01-28-2003, 03:06 AM   #7
face_master
Member
 
Registered: Jan 2003
Location: Australia
Distribution: Mandrake 9.1
Posts: 71

Original Poster
Rep: Reputation: 16
>> Try creating a blank file in there, then chmod that file:

Dont have write access...
 
Old 01-28-2003, 03:08 AM   #8
MasterC
LQ Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu ; CentOS ; Raspbian
Posts: 12,613

Rep: Reputation: 69
You mean you cannot even view the contents/listen/watch these files?

..........

??? I'm a bit confused. Ok, so you have directory X, let's say it's /home/temp
And inside /home/temp you have 200 files. Then you have 50 sub directories, each containing 20 files each, and each containing subfolders themselves.

All of these files in /home/temp are completely un-accessible by any app other than simply listing their existence?

Or what?
 
Old 01-28-2003, 03:12 AM   #9
face_master
Member
 
Registered: Jan 2003
Location: Australia
Distribution: Mandrake 9.1
Posts: 71

Original Poster
Rep: Reputation: 16
I have read and execute access, but I need write access. Though for some reason so apps can run the files.

Maybe I should mention that this is a sub directory on /mnt/ That could be signifigant...Its a mounted partition of another HDD than the one running Linux
 
Old 01-28-2003, 03:13 AM   #10
MasterC
LQ Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu ; CentOS ; Raspbian
Posts: 12,613

Rep: Reputation: 69
On your directory, try this (again as root, switch to root with ' su - '):
chmod a+w /path/to/directory

Cool
 
Old 01-28-2003, 03:14 AM   #11
face_master
Member
 
Registered: Jan 2003
Location: Australia
Distribution: Mandrake 9.1
Posts: 71

Original Poster
Rep: Reputation: 16
same error as before...
 
Old 01-28-2003, 03:16 AM   #12
MasterC
LQ Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu ; CentOS ; Raspbian
Posts: 12,613

Rep: Reputation: 69
WACKED with a capital W.

Who own this file? Try owning it to root:
chown -R root:root /path/to/directory
 
Old 01-28-2003, 03:22 AM   #13
face_master
Member
 
Registered: Jan 2003
Location: Australia
Distribution: Mandrake 9.1
Posts: 71

Original Poster
Rep: Reputation: 16
whenever I try to change ownership to anyone, it gives me that SAME GOD DAMN ERROR!!!
 
Old 01-28-2003, 03:27 AM   #14
MasterC
LQ Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu ; CentOS ; Raspbian
Posts: 12,613

Rep: Reputation: 69
Try logging out, and then back in, as root.
 
Old 01-28-2003, 03:36 AM   #15
face_master
Member
 
Registered: Jan 2003
Location: Australia
Distribution: Mandrake 9.1
Posts: 71

Original Poster
Rep: Reputation: 16
ok something is REALLY SCREWED here...

Even logged on as root I cant change anything!!!! No permissions, ownerships! NOTHING. My root user is screwed! WHATS WRONG?? AHHH!!!
 
  


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
chmod problem with proftpd kwickcut Mandriva 3 02-13-2005 11:36 PM
What can we do if we type chmod ugo-x /bin/chmod ?????? bunny123 Linux - Software 3 02-01-2005 08:53 PM
CHMOD in shell : chmod 777 /usr/ <---is that right? cpanelskindepot Programming 5 07-16-2004 05:37 AM
CHMOD problem michn77 Linux - Newbie 0 02-12-2004 05:15 AM
chmod possible problem unimaginative Linux - General 4 01-01-2004 06:28 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 11:19 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
Open Source Consulting | Domain Registration