Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - Software
User Name
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.


  Search this Thread
Old 08-20-2004, 05:12 PM   #1
LQ Newbie
Registered: Aug 2004
Posts: 28

Rep: Reputation: 15
Unhappy Cannot login since I entered chmod command?

I logged in as user "gopi" and I did the command "chmod 644 *" and when I tried to log in again as "gopi" its not accepting me.But I am able to log in as root user since I didnt issue that command as a root user I think.So how to get back my privileges? I also did "chmod 744 ~gopi" from root but still I can't enter

So what can I do?
Old 08-20-2004, 05:16 PM   #2
Senior Member
Registered: Dec 2002
Location: Mosquitoville
Distribution: RH 6.2, Gen2, Knoppix,arch, bodhi, studio, suse, mint
Posts: 3,292

Rep: Reputation: 65
~gopi will not get gopi's home. do a chmod 777 as root in /home/gopi.
Old 08-20-2004, 06:13 PM   #3
LQ Newbie
Registered: Aug 2004
Posts: 28

Original Poster
Rep: Reputation: 15
I did that but still can't enter.

And also after that login box appears and when I enter login name as "gopi" and password and press enter, the monitor blinks for a while and again that login box appears.But normally it shouldnt.I mean directly Desktop items should appear without monitor going black for sometime.

So what can I do?
Old 08-20-2004, 06:44 PM   #4
Registered: Sep 2003
Location: Ankara/Turkey
Distribution: Slackware
Posts: 155

Rep: Reputation: 30
Re: Cannot login since I entered chmod command?

Originally posted by gopikrish

I logged in as user "gopi" and I did the command "chmod 644 *"
Where did you give this command? If in your home directory, then set the permission of it as 755 (don't give write permission to others and your group if it's something like `users'). Then there shouldn't be a problem. But if you changed some ownership, or run that command in somewhere else then try to find out the directories you altered. For example you could look at the shell history or find the files has the permissions 644 and owned by `gopi' using find command. Refer to the find man page for specific parameters:

man find


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
CHMOD Command dudeman41465 Linux - Software 1 09-26-2005 03:29 AM
chmod command linuxtesting2 Linux - Newbie 2 09-03-2004 01:02 PM
chmod command not affecting files blueleft Linux - General 4 08-09-2003 12:26 PM
Chmod command gogo Linux - General 2 09-24-2002 08:01 AM
502 CHMOD command not implemented? jobesd Linux - General 2 11-20-2001 09:46 PM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 09:39 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration