SSH problem
Hi,
I screwed up the permissions on the /etc dir, and now other users can't login through ssh, only root can login. Any sugestions please? |
Well what did you change and have you tried to revert back? Can you post your config files here or permissions, etc? More details, we can't guess what you did to mess things up... ;)
|
Quote:
/me/looks for an embarassed smilie |
Warning: running this will reset ALL permissions. It depends on having an rpm database (hope I guessed right you're using Mandy): "rpm --setperms -qa". If you are running Aide you could do:
"zcat aide.db|egrep -ve "^(#|@)"|while read l; do l=( ${l} ) chmod ${l[2]} ${l[0]}; chown ${l[4]}:${l[5]} ${l[0]}; done" but note this will barf on spaces in names. In other cases you hope perms are stored and can be retrieved from whatever your package/backup manager provides or you'll have to restore from cdr/mirror. |
Quote:
thanks for the reply. I'm using redhat 8.00 on a server actually, i believe Mandy was MDK-9.2. So, rpm --setperms -qa will reset them to before i made changes, or when all the RPMs were installed? |
"rpm --setperms -qa" takes it's input from the rpm database, so AFAIK this means perms from initial install.
|
It worked a treat!
Thanks very much for your help. |
All times are GMT -5. The time now is 07:28 PM. |