LinuxQuestions.org
Visit the LQ Articles and Editorials section
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 07-27-2005, 04:37 AM   #1
karmakid
LQ Newbie
 
Registered: Jul 2005
Posts: 18

Rep: Reputation: 0
accidentally del /etc/group file in RedHat 9


well, there's info written inside /etc/group.

i accidentally remove the entire contents. now i cant remote access the server alridi.

i know in linux, there's no undo.

pls advise on how to get back the previous settings?

i've tried to copy from /etc/group- but it's not working also...
 
Old 07-27-2005, 04:45 AM   #2
karmakid
LQ Newbie
 
Registered: Jul 2005
Posts: 18

Original Poster
Rep: Reputation: 0
to give you all a clearer picture :-

i'm using cygwin to remote access to the server.

when i launch cygwin, i will need to
(ssh "userid" <ENTER>
password : "password").

<ENTER>

then it will prompt me the next command
(-bash-2.05b$)

and I will login as administrator by typing
(-bash-2.05b$ su - <ENTER>
password : "password"

<ENTER>).

---------------------------------------------------------------------------------------------------

However, after i accidentally del the /etc/group and i cp /etc/group- to create a new /etc/group, here is my results now :-

when i launch cygwin, I will get
(ssh "userid" <ENTER>
password : "password").

<ENTER>

then it will prompt me the next command
([userid@homedrive userid]$ )

and I will login as administrator by typing
([userid@homedrive userid]$ su - <ENTER>
password : "password"

<ENTER>).

---------------------------------------------------------------------------------------------------

the -bash-2.05b$ has disappeared. I can perform su - as usual and login as admin. However, I started to have problems when other server cannot mount to this main server.

HELP!!
 
Old 08-01-2005, 11:56 PM   #3
karmakid
LQ Newbie
 
Registered: Jul 2005
Posts: 18

Original Poster
Rep: Reputation: 0
bump
 
Old 08-02-2005, 08:16 PM   #4
tkedwards
Senior Member
 
Registered: Aug 2004
Location: Munich, Germany
Distribution: Opensuse 11.2
Posts: 1,549

Rep: Reputation: 51
The bash 'bash-2.05b$' is the default bash prompt. You don't usually see it because most distros (by default) set it to something more useful, such as the [userid@hostname currentdirectory] you're seeing here. If anything the change in the prompt like this is a sign that things have been fixed up, and not the other way round, since the prompt setting is done in either /etc/profile or .bash_profile.
 
  


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
well, there's info written inside /etc/group. accidentally del /etc/group in RedHat9 karmakid Red Hat 1 07-27-2005 10:27 PM
problem, dual boot, xp/redhat, cdtray kept ejecting, del redhat part. wont boot a OS mraym84 Linux - General 2 08-22-2004 01:46 PM
7.2 Redhat - accidentally deleted /lib gedi1 Linux - Software 2 02-27-2004 01:49 PM
del file csosa Linux - Software 12 09-28-2003 02:30 PM
Accidentally cleared the password file ForumKid Linux - General 8 03-04-2003 04:01 PM


All times are GMT -5. The time now is 11:55 AM.

Main Menu
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