Problem with SU utility!!!

2004-04-07 Thread oXid
Hello,

I did to all my / chmod 777... i just wanted to test somthing, but it
was a bad idea :(
Now, i can't login under SU. The account is in wheel
group...everything is fine, but when i enter root password it says,
that it is incorrect. I know my pass for 100%.
Is there any way, that my 777 mode did somthing?
Maybe some files shouldn't be 777?
Or is there any way to reinstall SU utility?

Thanks.

  

-- 
Best regards,
 oXid  mailto:[EMAIL PROTECTED]

___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re[2]: Problem with SU utility!!!

2004-04-07 Thread oXid
Hello Arek,

Wednesday, April 7, 2004, 2:42:26 PM, you wrote:

AC On Wed, 7 Apr 2004, oXid wrote:

 Hello,
 
 I did to all my / chmod 777... i just wanted to test somthing, but it
 was a bad idea :(
 Now, i can't login under SU. The account is in wheel
 group...everything is fine, but when i enter root password it says,
 that it is incorrect. I know my pass for 100%.
 Is there any way, that my 777 mode did somthing?
 Maybe some files shouldn't be 777?
 Or is there any way to reinstall SU utility?
 

AC First try normal login as root from console
AC Next check log files - maybe some info you find

AC Before this changes (chmod ...) you can login as root via su on this user?

AC Arek

Yes, before my stubid chmod everything was just fine.
I looked at auth.log in /var/log , the only thing he writes, is
standatr record, like su for user on tty... faild..
The same stig as if password that i'am entering is wrong. No erors and
etc...Juts wrong pass :((
Maybe there are some better logs for that?

I can enter as root from console. But i can't enter as root, from ssh.
I have to enter as some user from whell then SU and etc...



-- 
Best regards,
 oXidmailto:[EMAIL PROTECTED]

___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Problem with SU utility!!!

2004-04-07 Thread Peter Risdon
oXid wrote:

Hello Arek,

Wednesday, April 7, 2004, 2:42:26 PM, you wrote:

AC On Wed, 7 Apr 2004, oXid wrote:

 

Hello,

I did to all my / chmod 777... i just wanted to test somthing, but it
was a bad idea :(
Now, i can't login under SU. The account is in wheel
group...everything is fine, but when i enter root password it says,
that it is incorrect.
...

AC Before this changes (chmod ...) you can login as root via su on this user?

...

I can enter as root from console. But i can't enter as root, from ssh.
I have to enter as some user from whell then SU and etc...
 

Read /etc/ssh/sshd_config and find the line:

#PermitRootLogin no

Uncomment it and change no to yes if you really do want to permit direct 
root logins. It's generally thought to be a bad idea, though. Better to 
log in as a user and su/sudo when you need to.

PWR.

___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re[2]: Problem with SU utility!!!

2004-04-07 Thread oXid
Hello Beheer,

Wednesday, April 7, 2004, 1:58:46 PM, you wrote:

  I can enter as root from console. But i can't enter as root, from ssh.
  I have to enter as some user from whell then SU and etc...

B Don't login as root over a remote conection (ssh). It's disabled by
B default. The proper way is to login as a user who is in the wheel group
B and then su to root. It's also better to do this even at the local console.

B By default, no remote terminals are marked secure and thus are
B denied root login access.  Why?  Because they're not secure!

B To disable this security feature, go to /etc/ttys and mark the
B appropriate terminals 'secure.' But I would not recommend it.


B Richard.

B   __
B  / __ \ _/ /_/  _   ___
B / /_/ / __ `/ __  / _ \/ ___/ __ \/ __ `__ \
B/ _, _/ /_/ / /_/ /  __/ /__/ /_/ / / / / / /
B /_/ |_|\__,_/\__,_/\___/\___/\/_/ /_/ /_/

B www.radecom.nl




Thanks. But i don't have another choise.
Becose my SU utility doesn't work :(
I wrote that in my first mail.
Maybe anyone coud help me with fixing my SU?
Is itb possible to reinstall su, but only SU, not all system?
Or could someone tell me what files are working with su...maybe after
my chmod 777 / , access to some files gone wrong and now, SU utility
doesn't work properly... ??


-- 
Best regards,
 oXidmailto:[EMAIL PROTECTED]

___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Problem with SU utility!!!

2004-04-07 Thread Remko Lodder

Thanks. But i don't have another choise.
Becose my SU utility doesn't work :(
I wrote that in my first mail.
Maybe anyone coud help me with fixing my SU?
Is itb possible to reinstall su, but only SU, not all system?
try /usr/src/usr.bin/su if you installed the source as well
make  make install in that directory. It gives you new su files.
That does what you ask for, but i am not sure whether it solves your 
problem.

Let us know if that worked.

Cheers

--

Kind regards,

Remko Lodder
Elvandar.org/DSINet.org
www.mostly-harmless.nl A Dutch community for helping newcomers on the 
hackerscene
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Problem with SU utility!!!

2004-04-07 Thread Beheer
 I can enter as root from console. But i can't enter as root, from ssh.
 I have to enter as some user from whell then SU and etc...
Don't login as root over a remote conection (ssh). It's disabled by 
default. The proper way is to login as a user who is in the wheel group 
and then su to root. It's also better to do this even at the local console.

By default, no remote terminals are marked secure and thus are
denied root login access.  Why?  Because they're not secure!
To disable this security feature, go to /etc/ttys and mark the
appropriate terminals 'secure.' But I would not recommend it.
Richard.

 __
/ __ \ _/ /_/  _   ___
   / /_/ / __ `/ __  / _ \/ ___/ __ \/ __ `__ \
  / _, _/ /_/ / /_/ /  __/ /__/ /_/ / / / / / /
/_/ |_|\__,_/\__,_/\___/\___/\/_/ /_/ /_/
www.radecom.nl



___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Problem with SU utility!!!

2004-04-07 Thread Irwan Hadi
On Wed, Apr 07, 2004 at 02:07:42PM +0400, oXid wrote:
 Becose my SU utility doesn't work :(
 I wrote that in my first mail.
 Maybe anyone coud help me with fixing my SU?
 Is itb possible to reinstall su, but only SU, not all system?
 Or could someone tell me what files are working with su...maybe after
 my chmod 777 / , access to some files gone wrong and now, SU utility
 doesn't work properly... ??

Watch
-bash-2.05b$ ls -ls /usr/bin/su
14 -r-sr-xr-x  1 root  wheel  12460 Mar 18 02:03 /usr/bin/su
-bash-2.05b$

go change the permission flag on your su accordingly.

___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Problem with SU utility!!!

2004-04-07 Thread R. Zoontjens
oXid wrote:
 Thanks. But i don't have another choise.
 Becose my SU utility doesn't work :(
 I wrote that in my first mail.
OK, the following lines confused me:

I can enter as root from console. But i can't enter as root, from ssh.
I have to enter as some user from whell then SU and etc...
I thought you were able to login remotely as a user and then su to root. 
But could not login as root remotely. This would be normal.

Richard.

 __
/ __ \ _/ /_/  _   ___
   / /_/ / __ `/ __  / _ \/ ___/ __ \/ __ `__ \
  / _, _/ /_/ / /_/ /  __/ /__/ /_/ / / / / / /
/_/ |_|\__,_/\__,_/\___/\___/\/_/ /_/ /_/
www.radecom.nl

___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re[2]: Problem with SU utility!!!

2004-04-07 Thread oXid
Hello Remko,

Wednesday, April 7, 2004, 2:29:40 PM, you wrote:


 
 Thanks. But i don't have another choise.
 Becose my SU utility doesn't work :(
 I wrote that in my first mail.
 Maybe anyone coud help me with fixing my SU?
 Is itb possible to reinstall su, but only SU, not all system?

RL try /usr/src/usr.bin/su if you installed the source as well
RL make  make install in that directory. It gives you new su files.

RL That does what you ask for, but i am not sure whether it solves your
RL problem.

RL Let us know if that worked.

RL Cheers


Thanks alot to everybody !
I reinstalled SU and everything is fine.
Thnaks for fast help. Thanks alot!

-- 
Best regards,
 oXidmailto:[EMAIL PROTECTED]

___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Problem with SU utility!!!

2004-04-07 Thread Kirk Strauser
At 2004-04-07T09:12:25Z, oXid [EMAIL PROTECTED] writes:

 I did to all my / chmod 777... i just wanted to test somthing, but it was
 a bad idea :(

Wait - later posts indicate that /usr/bin/su had bad permissions.  Did you
*recursively* chmod your whole filesystem?
-- 
Kirk Strauser

94 outdated ports on the box,
 94 outdated ports.
 Portupgrade one, an hour 'til done,
 82 outdated ports on the box.


pgp0.pgp
Description: PGP signature