LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Security
User Name
Password
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.

Notices


Reply
  Search this Thread
Old 09-19-2005, 06:43 AM   #1
cryo70
LQ Newbie
 
Registered: Sep 2005
Distribution: FC3
Posts: 12

Rep: Reputation: 0
'logout' inserted in profile


If someone forgets to logout bfore leaving a terminal and a 'logout' is inserted in his profile, how can it be rectified by that person?
 
Old 09-19-2005, 07:51 AM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981
so someone played a trick on you and now you can't login? nice... You really need to get the administrator to remove the offending entries assuming you have no access to a higher level account yourself
 
Old 09-19-2005, 10:10 AM   #3
cryo70
LQ Newbie
 
Registered: Sep 2005
Distribution: FC3
Posts: 12

Original Poster
Rep: Reputation: 0
Actually, no.. this was a question in a certain event on ethical hacking and I'd like to know the answer... you can't seek the administrator's help here...
 
Old 09-19-2005, 10:33 AM   #4
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981
so this is homework then?
 
Old 09-19-2005, 11:34 AM   #5
cryo70
LQ Newbie
 
Registered: Sep 2005
Distribution: FC3
Posts: 12

Original Poster
Rep: Reputation: 0
No dude.... It's just knowledge for the sake of it... that event happened some 3 months ago and I was just chewing cud... so I wouldn't be gaining anything - not material, at least.
 
Old 09-19-2005, 12:34 PM   #6
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981
Well there should be no way for a user to bypass their .bashrc, as that could easily lead to security issues and such. AFAIK There is no escape sequence to bypass them. As such you would need to be able to access those files as someone else, as naturally your own user account is not able to complete a full login. this person would need to be an administrator, i.e. root.
 
Old 09-19-2005, 05:01 PM   #7
imitheos
Member
 
Registered: May 2005
Location: Greece
Posts: 433

Rep: Reputation: 117Reputation: 117
There are some things you can do, but under circumstances.

e.g if you have ftp access, you ftp to the machine and then rename the .bashrc or .profile or .bash_profile or whatever
to another name and then login like usually. You then edit the renamed file, delete the "logout" line and rename it back
to the normal name.

e.g if some friend has an account, he logins and the you "su" to your account.
when you run "su" (not "su -") then the shell startup scripts are not run, so you can edit the profile.

There are other solutions like these but every solution starts with "if"
 
  


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
auto starting when cd is inserted oingram Linux - Software 1 11-05-2005 07:12 AM
howto re-load my ~/.profile without logout? minike Slackware 4 09-18-2005 12:36 AM
whether cd or dvd is inserted? ur_prince Programming 0 12-22-2004 02:12 AM
whether cd or dvd is inserted? ur_prince Linux - Software 3 12-17-2004 11:40 AM
bash logout profile rc cs emacs sreenrc ravenarts Linux - Newbie 2 05-15-2002 08:01 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Security

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