LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Security (https://www.linuxquestions.org/questions/linux-security-4/)
-   -   accidentally del /etc/group file in RedHat 9 (https://www.linuxquestions.org/questions/linux-security-4/accidentally-del-etc-group-file-in-redhat-9-a-347221/)

karmakid 07-27-2005 04:37 AM

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...

karmakid 07-27-2005 04:45 AM

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!!

karmakid 08-01-2005 11:56 PM

bump

tkedwards 08-02-2005 08:16 PM

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.


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