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-11-2005, 11:29 PM   #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-11-2005, 11:36 PM   #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-11-2005 at 11:38 PM.
 
Old 02-11-2005, 11:41 PM   #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, 12: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, 11:50 AM   #5
kenji
Member
 
Registered: Sep 2004
Location: Philippines
Distribution: Slackware
Posts: 143

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

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

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

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