Re: FreeBSD and IPMI how-to (was Re: su problem)

2012-06-15 Thread Chuck Tuffli
On Thu, Jun 14, 2012 at 6:27 PM, Matthew X. Economou wrote: ... > Would some kind soul point me to a howto for configuring IPMI on > FreeBSD?  I have a Dell PowerEdge 840 that supports IPMI, but I have > no idea how to set it up - either in the BIOS or in FreeBSD.  I've > messed around with ipmito

Re: FreeBSD and IPMI how-to (was Re: su problem)

2012-06-15 Thread Daniel Braniss
> Hi, all, > > > Am 15.06.2012 um 03:27 schrieb Matthew X. Economou: > > Daniel Braniss writes: > > > >> just for the record, serial on 8.x works fine! the device naming > >> has changed from sio to uart, and maybe some features. We use it > >> on all our servers, even redirecting it where possi

Re: FreeBSD and IPMI how-to (was Re: su problem)

2012-06-15 Thread Randy Bush
i want two things from ipmi, reset and kva console. freebsd ipmitool gives me the first, and i already had an apc controlled power bar. randy ___ freebsd-stable@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-stable To unsubsc

Re: FreeBSD and IPMI how-to (was Re: su problem)

2012-06-15 Thread Steven Hartland
Daniel Braniss writes: Would some kind soul point me to a howto for configuring IPMI on FreeBSD? I have a Dell PowerEdge 840 that supports IPMI, but I have no idea how to set it up - either in the BIOS or in FreeBSD. I've messed around with ipmitools a little, but I haven't gotten it to work.

Re: FreeBSD and IPMI how-to (was Re: su problem)

2012-06-15 Thread Bob Bishop
Hi, On 15 Jun 2012, at 02:27, Matthew X. Economou wrote: > Would some kind soul point me to a howto for configuring IPMI on > FreeBSD? I have a Dell PowerEdge 840 that supports IPMI, but I have > no idea how to set it up - either in the BIOS or in FreeBSD. I've > messed around with ipmitools a

Re: FreeBSD and IPMI how-to (was Re: su problem)

2012-06-14 Thread Patrick M. Hausen
Hi, all, Am 15.06.2012 um 03:27 schrieb Matthew X. Economou: > Daniel Braniss writes: > >> just for the record, serial on 8.x works fine! the device naming >> has changed from sio to uart, and maybe some features. We use it >> on all our servers, even redirecting it where possible via >> ILO,IMP

Re: FreeBSD and IPMI how-to (was Re: su problem)

2012-06-14 Thread Sean Bruno
On Thu, 2012-06-14 at 18:27 -0700, Matthew X. Economou wrote: > Daniel Braniss writes: > > > just for the record, serial on 8.x works fine! the device naming > > has changed from sio to uart, and maybe some features. We use it > > on all our servers, even redirecting it where possible via > > ILO,

FreeBSD and IPMI how-to (was Re: su problem)

2012-06-14 Thread Matthew X. Economou
Daniel Braniss writes: > just for the record, serial on 8.x works fine! the device naming > has changed from sio to uart, and maybe some features. We use it > on all our servers, even redirecting it where possible via > ILO,IMPI,DRAC. and is great for debuging or saving long trips :-) Would some

Re: su problem

2012-06-14 Thread Daniel Braniss
> > > On 6/10/12 1:52 PM, Daniel Braniss wrote: > >> Sami Halabi wrote: > >> > Hi Oliver, > >> > I saw you had similar problem for console on 2010 > >> > > >> http://freebsd.1045724.n5.nabble.com/Serial-console-problems-with-stab=le-8-td3950684.html > >> > >> No, I don't think that the probl

Re: su problem

2012-06-12 Thread Sami Halabi
%su -m root -c 'cd /etc/ssh/ && sed -i .bak -e "s/PermitRootLogin no/PermitRootLogin yes/"' Password: load: 0.00 cmd: su 42619 [ttydcd] 3.20r 0.00u 0.00s 0% 2088k :( I think there is no good solution but driving to the machine itself... Sami On Tue, Jun 12, 2012 at 4:10 PM, Damien Fleuriot wro

Re: su problem

2012-06-12 Thread Damien Fleuriot
On 6/12/12 3:00 PM, Oliver Fromme wrote: > Damien Fleuriot wrote: > > Ok so, I've read all the replies so far and I'm a bit perplexed. > > > > Sami, before you drive 3 hours to and 3 hours fro, kindly log in as sody > > over SSH, then try "login" to connect *locally* as the root user. > > Th

Re: su problem

2012-06-12 Thread Oliver Fromme
Damien Fleuriot wrote: > Ok so, I've read all the replies so far and I'm a bit perplexed. > > Sami, before you drive 3 hours to and 3 hours fro, kindly log in as sody > over SSH, then try "login" to connect *locally* as the root user. That won't work. Unless you've disabled the "securetty"

Re: su problem

2012-06-12 Thread Damien Fleuriot
On 6/9/12 9:55 AM, Sami Halabi wrote: > Hi, > I Just finished upgrade from FBSD-8.1-R fresh system to FBSD-8.3-p2. > once done, i created regular accounts, in wheel group. > > first all was okay, but suddenly i found my self blocked out, because i > can't ssh as root, and i can't su either, when

Re: su problem

2012-06-12 Thread Damien Fleuriot
On 6/10/12 1:52 PM, Daniel Braniss wrote: >> Sami Halabi wrote: >> > Hi Oliver, >> > I saw you had similar problem for console on 2010 >> > >> http://freebsd.1045724.n5.nabble.com/Serial-console-problems-with-stab=le-8-td3950684.html >> >> No, I don't think that the problem is related. My p

Re: su problem

2012-06-12 Thread Oliver Pinter
truss, ktrace the sody user is member of wheel? On 6/12/12, Ronald Klop wrote: > On Mon, 11 Jun 2012 15:53:34 +0200, Sami Halabi wrote: > >> Hi, >> I opened 2 terminals with user sody. >> in first i hit "su -", and supplied password, it was stcuked. >> in the other I did: >> >> %ps xau | grep s

Re: su problem

2012-06-12 Thread Ronald Klop
On Mon, 11 Jun 2012 15:53:34 +0200, Sami Halabi wrote: Hi, I opened 2 terminals with user sody. in first i hit "su -", and supplied password, it was stcuked. in the other I did: %ps xau | grep su sody 39830 0.0 0.0 9124 1500 0 S+4:51PM 0:00.00 grep su root 39812 0.0 0.0 21732

Re: su problem

2012-06-11 Thread Sami Halabi
Hi, I opened 2 terminals with user sody. in first i hit "su -", and supplied password, it was stcuked. in the other I did: %ps xau | grep su sody 39830 0.0 0.0 9124 1500 0 S+4:51PM 0:00.00 grep su root 39812 0.0 0.0 21732 2088 1 I 4:49PM 0:00.00 su - root 39813 0.0 0.

Re: su problem

2012-06-11 Thread Ronald Klop
On Sat, 09 Jun 2012 18:42:27 +0200, Eugene Grosbein wrote: 09.06.2012 19:47, Sami Halabi пишет: %su - Password: load: 0.00 cmd: su 30588 [ttydcd] 0.91r 0.00u 0.00s 0% 2092k Perpaps, your system had no keyboard attached at boot time; or for some other reason it booted with /dev/console bei

Re: su problem

2012-06-10 Thread Brian W.
Anything in the /var/log files give you a clue? On Jun 10, 2012 10:29 AM, "Sami Halabi" wrote: > But how do I solve the problem? > > On Sun, Jun 10, 2012 at 7:17 PM, Eugene Grosbein > wrote: > > > 10.06.2012 01:45, Sami Halabi пишет: > > > Hi, > > > > > > %sysctl kern.console > > > kern.console:

Re: su problem

2012-06-10 Thread Sami Halabi
I'll try to reboot the machine when I go to the farm during this week, and i'll report. Thanks for all who tried to help. Sami On Sun, Jun 10, 2012 at 9:29 PM, Eugene Grosbein wrote: > 10.06.2012 18:57, Sami Halabi пишет: > > Well,in8.1 & 8.2it worked fine for me, in 8.3 i got this problem...

Re: su problem

2012-06-10 Thread Eugene Grosbein
10.06.2012 18:57, Sami Halabi пишет: > Well,in8.1 & 8.2it worked fine for me, in 8.3 i got this problem. Have you asked someone to power cycle the box? The problem may go away if it was caused by unusual actions at boot... Eugene Grosbein ___ freeb

Re: su problem

2012-06-10 Thread Eugene Grosbein
11.06.2012 01:21, Sami Halabi пишет: > Hi, > > %grep console /etc/syslog.conf > *.err;kern.warning;auth.notice;mail.crit/dev/console > # uncomment this to log all writes to /dev/console to /var/log/console.log > #console.info

Re: su problem

2012-06-10 Thread Sami Halabi
Hi, %grep console /etc/syslog.conf *.err;kern.warning;auth.notice;mail.crit/dev/console # uncomment this to log all writes to /dev/console to /var/log/console.log #console.info /var/log/console.log % %kenv | grep console comconsole_speed="9600" co

Re: su problem

2012-06-10 Thread Eugene Grosbein
11.06.2012 00:28, Sami Halabi пишет: > But how do I solve the problem? First you know for sure if it's true. Please show output of "grep console /etc/syslog.conf" and "kenv | grep console". ___ freebsd-stable@freebsd.org mailing list http://lists.freebsd

Re: su problem

2012-06-10 Thread Sami Halabi
But how do I solve the problem? On Sun, Jun 10, 2012 at 7:17 PM, Eugene Grosbein wrote: > 10.06.2012 01:45, Sami Halabi пишет: > > Hi, > > > > %sysctl kern.console > > kern.console: ttyv0,dcons,/dcons,ttyv0,uart,ucom, > > > > %tail /var/log/messages > > Jun 7 19:54:35 vps16 kernel: Trying to mo

Re: su problem

2012-06-10 Thread Eugene Grosbein
10.06.2012 01:45, Sami Halabi пишет: > Hi, > > %sysctl kern.console > kern.console: ttyv0,dcons,/dcons,ttyv0,uart,ucom, > > %tail /var/log/messages > Jun 7 19:54:35 vps16 kernel: Trying to mount root from ufs:/dev/da0s1a > Jun 7 19:54:36 vps16 kernel: bge0: link state changed to UP > Jun 7 20:

Re: su problem

2012-06-10 Thread Sami Halabi
Well,in8.1 & 8.2it worked fine for me, in 8.3 i got this problem. On Sun, Jun 10, 2012 at 2:52 PM, Daniel Braniss wrote: > > Sami Halabi wrote: > > > Hi Oliver, > > > I saw you had similar problem for console on 2010 > > > > http://freebsd.1045724.n5.nabble.com/Serial-console-problems-wi

Re: su problem

2012-06-10 Thread Daniel Braniss
> Sami Halabi wrote: > > Hi Oliver, > > I saw you had similar problem for console on 2010 > > > http://freebsd.1045724.n5.nabble.com/Serial-console-problems-with-stab=le-8-td3950684.html > > No, I don't think that the problem is related. My problem > was with the serial console, while you do

Re: su problem

2012-06-10 Thread Oliver Fromme
Sami Halabi wrote: > Hi Oliver, > I saw you had similar problem for console on 2010 > http://freebsd.1045724.n5.nabble.com/Serial-console-problems-with-stable-8-td3950684.html No, I don't think that the problem is related. My problem was with the serial console, while you don't have a serial

Re: su problem

2012-06-10 Thread Sami Halabi
Hi Oliver, I saw you had similar problem for console on 2010 http://freebsd.1045724.n5.nabble.com/Serial-console-problems-with-stable-8-td3950684.html but the thread wasn't ended by recommendation or conclusions by you. did you solve that problem then? it seems i have something similr. look at

Re: su problem

2012-06-09 Thread Sami Halabi
unfortunatlly its not installed by default and i didn't have the chance to install it because i locked out quickly :( Sami On Sun, Jun 10, 2012 at 12:11 AM, Andrey Zonov wrote: > sudo is not installed? > > > On 6/10/12 12:22 AM, Sami Halabi wrote: > >> I already posted that: >> >> %ls -l /usr/bi

Re: su problem

2012-06-09 Thread Andrey Zonov
sudo is not installed? On 6/10/12 12:22 AM, Sami Halabi wrote: I already posted that: %ls -l /usr/bin/su -r-sr-xr-x 1 root wheel 16944 Jun 7 19:47 /usr/bin/su % Sami On Sat, Jun 9, 2012 at 10:57 PM, Mark Saad wrote: On Jun 9, 2012, at 2:45 PM, Sami Halabi wrote: Hi, %sysctl kern

Re: su problem

2012-06-09 Thread Mel Flynn
On 9-6-2012 18:42, Eugene Grosbein wrote: > 09.06.2012 19:47, Sami Halabi пишет: >> %su - >> Password: >> load: 0.00 cmd: su 30588 [ttydcd] 0.91r 0.00u 0.00s 0% 2092k > > Perpaps, your system had no keyboard attached at boot time; > or for some other reason it booted with /dev/console being seria

Re: su problem

2012-06-09 Thread Sami Halabi
I already posted that: %ls -l /usr/bin/su -r-sr-xr-x 1 root wheel 16944 Jun 7 19:47 /usr/bin/su % Sami On Sat, Jun 9, 2012 at 10:57 PM, Mark Saad wrote: > > > > On Jun 9, 2012, at 2:45 PM, Sami Halabi wrote: > > > Hi, > > > > %sysctl kern.console > > kern.console: ttyv0,dcons,/dcons,ttyv0

Re: su problem

2012-06-09 Thread Mark Saad
On Jun 9, 2012, at 2:45 PM, Sami Halabi wrote: > Hi, > > %sysctl kern.console > kern.console: ttyv0,dcons,/dcons,ttyv0,uart,ucom, > > %tail /var/log/messages > Jun 7 19:54:35 vps16 kernel: Trying to mount root from ufs:/dev/da0s1a > Jun 7 19:54:36 vps16 kernel: bge0: link state changed to

Re: su problem

2012-06-09 Thread Sami Halabi
Hi, %sysctl kern.console kern.console: ttyv0,dcons,/dcons,ttyv0,uart,ucom, %tail /var/log/messages Jun 7 19:54:35 vps16 kernel: Trying to mount root from ufs:/dev/da0s1a Jun 7 19:54:36 vps16 kernel: bge0: link state changed to UP Jun 7 20:18:04 vps16 kernel: ugen0.2: at usbus0 Jun 7 20:18:04

Re: su problem

2012-06-09 Thread Sami Halabi
%stty clocal %su - Password: load: 0.00 cmd: su 34023 [ttydcd] 0.72r 0.00u 0.00s 0% 2092k load: 0.00 cmd: su 34023 [ttydcd] 0.99r 0.00u 0.00s 0% 2092k I tried stty -clocal also but didn't work :( any other ideas? On Sat, Jun 9, 2012 at 6:43 PM, Ian Lepore wrote: > On Sat, 2012-06-09 at

Re: su problem

2012-06-09 Thread Eugene Grosbein
09.06.2012 19:47, Sami Halabi пишет: > %su - > Password: > load: 0.00 cmd: su 30588 [ttydcd] 0.91r 0.00u 0.00s 0% 2092k Perpaps, your system had no keyboard attached at boot time; or for some other reason it booted with /dev/console being serial console instead of vidconsole. su locks trying to a

Re: su problem

2012-06-09 Thread Ian Lepore
On Sat, 2012-06-09 at 15:47 +0300, Sami Halabi wrote: > %su - > Password: > load: 0.00 cmd: su 30588 [ttydcd] 0.91r 0.00u 0.00s 0% 2092k > load: 0.00 cmd: su 30588 [ttydcd] 3.99r 0.00u 0.00s 0% 2092k > load: 0.00 cmd: su 30588 [ttydcd] 4.81r 0.00u 0.00s 0% 2092k > load: 0.00 cmd: su 30588 [ttyd

Re: su problem

2012-06-09 Thread Sami Halabi
Hi, %ls -l /usr/bin/su -r-sr-xr-x 1 root wheel 16944 Jun 7 19:47 /usr/bin/su % I don't think this realtred to suid bit, because if so it would give permission denied error... Sami On Sat, Jun 9, 2012 at 5:43 PM, Oliver Fromme wrote: > Sami Halabi wrote: > > %id > > uid=1001(sody) gid=100

Re: su problem

2012-06-09 Thread Oliver Fromme
Sami Halabi wrote: > %id > uid=1001(sody) gid=1001(sody) groups=1001(sody),0(wheel) > % > > i have another account also id 1002 - sody2, also in group wheel. > i can ssh using user sody/sody2, however su doesn't work if i do: su sody2, > when i logged in with user sody. > it seems that su

Re: su problem

2012-06-09 Thread Adam Strohl
On 6/9/2012 20:33, Sami Halabi wrote: its the same as /var/log/messages I assume you mean there is nothing there because it's not the same thing (yes dmesg stuff should get logged into syslog but your system obviously isn't working right so ...). Past that I've been skimming this thread sin

Re: su problem

2012-06-09 Thread Sami Halabi
its the same as /var/log/messages On Sat, Jun 9, 2012 at 4:32 PM, Adam Strohl wrote: > On 6/9/2012 20:29, Sami Halabi wrote: > >> Hi, >> /var/log/messages - no new logs >> > > Sorry if this has been asked, anything in dmesg? > -- Sami Halabi Information Systems Engineer NMS Projects Expert Fr

Re: su problem

2012-06-09 Thread Adam Strohl
On 6/9/2012 20:29, Sami Halabi wrote: Hi, /var/log/messages - no new logs Sorry if this has been asked, anything in dmesg? ___ freebsd-stable@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-stable To unsubscribe, send any ma

Re: su problem

2012-06-09 Thread Sami Halabi
Hi, /var/log/messages - no new logs %id sody2 uid=1002(sody2) gid=1002(sody2) groups=1002(sody2),0(wheel) % i did top on one session and followed it after I issued "su -" the only new process issued is "su" and it stays there even after I supply the password... This is really strange, it never h

Re: su problem

2012-06-09 Thread Sami Halabi
is it possible to set serial console over ip? or i need null cable? On Sat, Jun 9, 2012 at 3:58 PM, Ronald Klop wrote: > On Sat, 09 Jun 2012 09:55:28 +0200, Sami Halabi > wrote: > > Hi, >> I Just finished upgrade from FBSD-8.1-R fresh system to FBSD-8.3-p2. >> once done, i created regular accou

Re: su problem

2012-06-09 Thread Ronald Klop
On Sat, 09 Jun 2012 09:55:28 +0200, Sami Halabi wrote: Hi, I Just finished upgrade from FBSD-8.1-R fresh system to FBSD-8.3-p2. once done, i created regular accounts, in wheel group. first all was okay, but suddenly i found my self blocked out, because i can't ssh as root, and i can't su eithe

Re: su problem

2012-06-09 Thread Sami Halabi
%su - Password: load: 0.00 cmd: su 30588 [ttydcd] 0.91r 0.00u 0.00s 0% 2092k load: 0.00 cmd: su 30588 [ttydcd] 3.99r 0.00u 0.00s 0% 2092k load: 0.00 cmd: su 30588 [ttydcd] 4.81r 0.00u 0.00s 0% 2092k load: 0.00 cmd: su 30588 [ttydcd] 5.34r 0.00u 0.00s 0% 2092k load: 0.00 cmd: su 30588 [ttydcd]

Re: su problem

2012-06-09 Thread Sami Halabi
Hmm.. I don't get shell to send any commands, its just go a newline and stuck there until i hit CTRL-C and go back. waiting for long time doesn't work either Sami On Sat, Jun 9, 2012 at 3:24 PM, David Wolfskill wrote: > On Sat, Jun 09, 2012 at 03:21:29PM +0300, Sami Halabi wrote: > > Hi, > >

Re: su problem

2012-06-09 Thread Sami Halabi
Hi, %id uid=1001(sody) gid=1001(sody) groups=1001(sody),0(wheel) % i have another account also id 1002 - sody2, also in group wheel. i can ssh using user sody/sody2, however su doesn't work if i do: su sody2, when i logged in with user sody. it seems that su is broken somehow any ideas? Tha

Re: su problem

2012-06-09 Thread Mehmet Erol Sanliturk
On Sat, Jun 9, 2012 at 3:35 AM, Oliver Fromme wrote: > Sami Halabi wrote: > > I Just finished upgrade from FBSD-8.1-R fresh system to FBSD-8.3-p2. > > once done, i created regular accounts, in wheel group. > > > > first all was okay, but suddenly i found my self blocked out, because i > > ca

Re: su problem

2012-06-09 Thread Oliver Fromme
Sami Halabi wrote: > I Just finished upgrade from FBSD-8.1-R fresh system to FBSD-8.3-p2. > once done, i created regular accounts, in wheel group. > > first all was okay, but suddenly i found my self blocked out, because i > can't ssh as root, and i can't su either, when i su i get this: >

su problem

2012-06-09 Thread Sami Halabi
Hi, I Just finished upgrade from FBSD-8.1-R fresh system to FBSD-8.3-p2. once done, i created regular accounts, in wheel group. first all was okay, but suddenly i found my self blocked out, because i can't ssh as root, and i can't su either, when i su i get this: %su - Password: and it stuck in t