LinuxQuestions.org
Visit Jeremy's Blog.
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 02-12-2005, 12:29 AM   #1
DeathPrawn
LQ Newbie
 
Registered: Nov 2004
Posts: 10

Rep: Reputation: 0
Chmod = no access to home folder!


Okay. Today I was setting the file permissions to all of the files in a folder, but when I meant to type "chmod 666 ./*" I accidentally typed "chmod 666 /*", no period before the slash. Not surprisingly, it proceeded to change all of the folders in my root to rw-rw-rw. Now, for some reason, whenever I try to log in to my regular user account (deathprawn) from the console, it tells me it can't cd to "/home/deathprawn" and then logs out. I have no idea why this is happening. As a test, I even tried chmodding everything in root to rwxrwxrwx, but it still says I can't cd to my home dir when I log in to that user. It works fine as root. I'm using Debian unstable.
 
Old 02-12-2005, 12:36 AM   #2
guest
Member
 
Registered: May 2003
Distribution: CentOS 5 64 bit
Posts: 255

Rep: Reputation: 30
I think when you chmod /* it changes every file from root (/) down so every thing is changed. I think you must have x permission to change to a directory. I could be wrong but if I understood the file permission section of the book I read that is your problem. Otherwise just ignore me because I am just learning.

(edit) Also I think when you type cd it is executing a command, which you no longer have permission to do (/edit).


Thanks

Last edited by guest; 02-12-2005 at 12:38 AM.
 
Old 02-12-2005, 12:41 AM   #3
DeathPrawn
LQ Newbie
 
Registered: Nov 2004
Posts: 10

Original Poster
Rep: Reputation: 0
I believe that it just changed the directories, since it wasn't using the -R (recursive) option. If you read my original post, I DO have full rwx access to the folder and the /bin folder.

Thanks so much!
 
Old 02-12-2005, 01:15 AM   #4
guest
Member
 
Registered: May 2003
Distribution: CentOS 5 64 bit
Posts: 255

Rep: Reputation: 30
when you say root do you mean /root directory or do you mean / as in the root directory for the entire file system. You said you typed /* which would mean change everything from / down which would be every thing in the entire file system.
 
Old 02-12-2005, 12:50 PM   #5
kenji
Member
 
Registered: Sep 2004
Location: Philippines
Distribution: Red hat 9, Ubuntu 5.04, Free BSD 5.3, Knoppix 5.04, Ubuntu 8.04, [Slackware 12~13.1]
Posts: 141

Rep: Reputation: 16
hi! have you tried "chmod755 /*" ?! 3

Last edited by kenji; 02-12-2005 at 12:54 PM.
 
  


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
Folder Max Size and Limiting SSH access to home folder. Mefistofeles Linux - General 4 11-26-2005 03:09 PM
Chmod rights and folder access fieldyweb Linux - General 3 08-24-2005 05:12 AM
permissions difference between /home/..../folder and /root/folder darkleaf Linux - General 3 07-21-2005 06:23 PM
FTP access to home folder deWin Linux - Networking 5 04-26-2004 02:45 AM
gnome home folder and trash folder ambelos Linux - Software 2 02-24-2004 07:44 AM


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