LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
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 01-14-2007, 01:54 AM   #1
ianq
LQ Newbie
 
Registered: Dec 2006
Posts: 15

Rep: Reputation: 0
Permissions


Hi All

I have accidentally make a mistake by do this : chomd -r .* when i am in /home/reports. Now /home/reports become : d-wx-wx-wx /home/reports.

Could someone please tell me how can i revert back to or able to chmod to 777 -R /home/reports.

Thanks
 
Old 01-14-2007, 02:08 AM   #2
Simon Bridge
LQ Guru
 
Registered: Oct 2003
Location: Waiheke NZ
Distribution: Ubuntu
Posts: 9,211

Rep: Reputation: 198Reputation: 198
What happens when you chmod +r /home/reports

(I've just checked this out on a file in my system...)
Code:
$ ls -l dir.txt
-rw-r--r-- 1 simon simon 119 2007-01-13 23:08 dir.txt
$ chmod -r dir.txt
$ ls -l dir.txt
--w------- 1 simon simon 119 2007-01-13 23:08 dir.txt
$ cat dir.txt
cat: dir.txt: Permission denied
$ chmod +r dir.txt
$ ls -l dir.txt
-rw-r--r-- 1 simon simon 119 2007-01-13 23:08 dir.txt
 
Old 01-14-2007, 10:07 AM   #3
ianq
LQ Newbie
 
Registered: Dec 2006
Posts: 15

Original Poster
Rep: Reputation: 0
Simon, thank you

i have tried to chmod +r when i am still in /home/reports but failed. i will try to chmod +r /home/reports in either /home or /root. Btw, i am having this problem as well.

You see, when i am in /home and mkdir, i get this permission denied although the owner of /home "." and ".." is root. Why ? anyway to force change the permission of a directory wtth root user ?.

Please advise.
 
Old 01-15-2007, 04:29 AM   #4
Simon Bridge
LQ Guru
 
Registered: Oct 2003
Location: Waiheke NZ
Distribution: Ubuntu
Posts: 9,211

Rep: Reputation: 198Reputation: 198
Please edit your profile to display the distribution you are using.

When you report the results of commands, please paste the command and the result to the forum.

eg.
Code:
$ mkdir dummy
simon@errata:~$ ls -dl dummy
drwxr-xr-x 2 simon simon 4096 2007-01-15 23:28 dummy
Thank you.
 
Old 02-06-2007, 12:11 AM   #5
ianq
LQ Newbie
 
Registered: Dec 2006
Posts: 15

Original Poster
Rep: Reputation: 0
Dear All

Sorry to bother you all, but the problem is resolved. I did not realised that the /home i am referring is actually a mount point.
Did a df -h /home and found the NFS server. So i went to the NFS server, and i am able to change permissions as usual.

Sorry to take up your time, and please close this post, thank you all

Rgds
Ian
 
  


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
Permissions Outcast Linux - Newbie 3 11-06-2006 10:42 AM
file permissions OK, but command permissions? stabu Linux - General 2 10-05-2005 12:00 PM
permission ... permissions .... permissions alaios Linux - General 1 05-31-2005 04:16 AM
permissions spuppett Linux - Newbie 4 04-12-2004 01:32 PM
getting a directory's permissions and creating a new one with the same permissions newbie1000101 Programming 1 04-10-2004 12:52 PM

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

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