Problem with SU utility!!!
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!!!
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!!!
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!!!
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!!!
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!!!
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!!!
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!!!
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!!!
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!!!
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
problem with su
When I su -m and login as root, all I get in the prompt is a % sign. My normal user shell is tcsh and the prompt looks like this: [EMAIL PROTECTED]/home/eric(29): but this is not kept when I su -m. How can I change this? Thanks, Eric ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: problem with su
On Sat, Mar 20, 2004 at 07:41:53PM +0200, Eric Yellin wrote: When I su -m and login as root, all I get in the prompt is a % sign. My normal user shell is tcsh and the prompt looks like this: [EMAIL PROTECTED]/home/eric(29): but this is not kept when I su -m. How can I change this? Have you tried copying ~eric/.cshrc to ~root/.cshrc? -- Jez Hancock - System Administrator / PHP Developer http://munk.nu/ http://jez.hancock-family.com/ - Another FreeBSD Diary http://ipfwstats.sf.net/- ipfw peruser traffic logging ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: problem with su
Eric Yellin wrote: When I su -m and login as root, all I get in the prompt is a % sign. My normal user shell is tcsh and the prompt looks like this: [EMAIL PROTECTED]/home/eric(29): but this is not kept when I su -m. How can I change this? Thanks, Eric ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED] Hi Eric, When you use `su -` you say to the su program, Let me own the root profile and give it's settings to me, dropping my own settings. use `su` if you want to say using your current settings. Cheers ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: problem with su
On Sat, Mar 20, 2004 at 07:41:53PM +0200, Eric Yellin wrote: When I su -m and login as root, all I get in the prompt is a % sign. My normal user shell is tcsh and the prompt looks like this: [EMAIL PROTECTED]/home/eric(29): but this is not kept when I su -m. How can I change this? Look in /root/.cshrc -- I generally just comment out the PROMPT line. -lewiz. -- I was so much older then, I'm younger than that now. --Bob Dylan, 1964. -| msn:[EMAIL PROTECTED] | jabber:[EMAIL PROTECTED] | url:www.lewiz.org |- pgp0.pgp Description: PGP signature
Re: problem with su
Jez Hancock wrote: On Sat, Mar 20, 2004 at 07:41:53PM +0200, Eric Yellin wrote: When I su -m and login as root, all I get in the prompt is a % sign. My normal user shell is tcsh and the prompt looks like this: [EMAIL PROTECTED]/home/eric(29): but this is not kept when I su -m. How can I change this? Have you tried copying ~eric/.cshrc to ~root/.cshrc? Why should you want to do that? Why not build a root specific environment setting? Or if you actually want to do it, don't forget to look at the files before you copy them, and insert the root options back in. (i mean that the root .cshrc might have other options than your $user .cshrc file, and you perhaps want to keep some settings which are in the root .cshrc) Cheers -- -- Kind regards, Remko Lodder Elvandar.org/DSINet.org www.mostly-harmless.nl 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
This isn't right, when using the -m flag su uses your current environment, keeping your shell, prompt etc the same as in your own account. All I can think of is that it executes something when it opens the new shell which changes it, which shouldn't be root's cshrc. Perhaps some shell script conditional gubbins around the prompt statement in the user's cshrc? Ed -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Jez Hancock Sent: 20 March 2004 18:23 To: Eric Yellin Cc: freeBSD Subject: Re: problem with su On Sat, Mar 20, 2004 at 07:41:53PM +0200, Eric Yellin wrote: When I su -m and login as root, all I get in the prompt is a % sign. My normal user shell is tcsh and the prompt looks like this: [EMAIL PROTECTED]/home/eric(29): but this is not kept when I su -m. How can I change this? Have you tried copying ~eric/.cshrc to ~root/.cshrc? -- Jez Hancock - System Administrator / PHP Developer http://munk.nu/ http://jez.hancock-family.com/ - Another FreeBSD Diary http://ipfwstats.sf.net/- ipfw peruser traffic logging ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [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
On Sat, Mar 20, 2004 at 06:46:53PM -, Edmund Craske wrote: This isn't right, when using the -m flag su uses your current environment, keeping your shell, prompt etc the same as in your own account. All I can think of is that it executes something when it opens the new shell which changes it, which shouldn't be root's cshrc. Perhaps some shell script conditional gubbins around the prompt statement in the user's cshrc? Mmm you're right - personally I do: su - to su from my normal to root user and I have ~root/.cshrc symlinked to ~user/.cshrc (ditto for most other dotrc files :P). Works for me. -- Jez Hancock - System Administrator / PHP Developer http://munk.nu/ http://jez.hancock-family.com/ - Another FreeBSD Diary http://ipfwstats.sf.net/- ipfw peruser traffic logging ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: problem with su
Eric Yellin wrote: When I su -m and login as root, all I get in the prompt is a % sign. My normal user shell is tcsh and the prompt looks like this: [EMAIL PROTECTED]/home/eric(29): but this is not kept when I su -m. How can I change this? Thanks, Eric Seems a tad unusual. Don't know if I can help, but can you give me some info? a. What is root's shell entry in /etc/passwd? b. From whence do you set your normal prompt? /~/.cshrc? If the machine is not used by others, a quick workaround might be to simply copy your .cshrc to /root/ and simply use su. But it does seem a tad weird that su -m seems to be reading some other resource file...or else my understanding of -m is broken, which is entirely possible. Kevin Kinsey DaleCo, S.P. ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: problem with su
Edmund Craske wrote: -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Jez Hancock Sent: 20 March 2004 18:23 To: Eric Yellin Cc: freeBSD Subject: Re: problem with su On Sat, Mar 20, 2004 at 07:41:53PM +0200, Eric Yellin wrote: When I su -m and login as root, all I get in the prompt is a % sign. My normal user shell is tcsh and the prompt looks like this: [EMAIL PROTECTED]/home/eric(29): but this is not kept when I su -m. How can I change this? Have you tried copying ~eric/.cshrc to ~root/.cshrc? -- Jez Hancock - System Administrator / PHP Developer This isn't right, when using the -m flag su uses your current environment, keeping your shell, prompt etc the same as in your own account. All I can think of is that it executes something when it opens the new shell which changes it, which shouldn't be root's cshrc. Perhaps some shell script conditional gubbins around the prompt statement in the user's cshrc? Ed Testing, one, two three. I wrote (even having tested first) something similar to the list almost 3 hours ago. As it hasn't shown up yet (mailman seems fine, is my DNS down again?) we'll try again: -- Seems a tad unusual. Don't know if I can help, but can you give me some info? a. What is root's shell entry in /etc/passwd? b. From whence do you set your normal prompt? /~/.cshrc? If the machine is not used by others, a quick workaround might be to simply copy your .cshrc to /root/ and simply use su. But it does seem a tad weird that su -m seems to be reading some other resource file...or else my understanding of -m is broken, which is entirely possible. Kevin Kinsey DaleCo, S.P. ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]