newbie question - users deleted after playing with sysinstall
Hi I've just finished install FreeBSD 4.10 for the first time. I'm an experienced linux user, but have no experience with FreeBSD. after a very basic installation (only the first step, to get ssh) I've put the computer at my ISP (of-course everything is blocked by a firewall) and continued from home. I then installed some packages from the Distribution menu, and played with the menus to see what I can configure. today, I couldn't login to the computer (ssh), and when I checked (I had someone there who logged in locally) I found out root has no password and the regular user I created was gone. my question is: could something I've done in sysinstall delete the user and root password? it's not likely that someone broke into the system because it's completely blocked (only open from my IP). thanx -- Haim ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-stable To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: HEADSUP!!! USB MFC committed..
[drop the above ipv6-only address that only sometimes works from the recipients and I'll catch up later from the archives, thanks] [dropped hackers for now] Just over two months ago, Julian Elischer begged: let me have your patches.. 4.10 goes into code freeze tomorrow so I need them asap. I can get a pass from release engineering to Arrrgh, please accept my sincerest apologies. Right after sending that message some two months ago, I went offline and wasn't able to go back online to get your plea for well over a month, as Real Life reared its ugly head and I had to get busy moving to a place with no possibility of Internet access, sigh... Anyway, I didn't see this until a couple hours after the 4.10 release tag hit the tree, so I guess I deserve whatever I've got coming to me. Anyway, here's what I have, now based on RELENG_4 source of the time of 4.10, and -current of the same timeframe... What I'd done is to both try to merge in the diff mentioned earlier into the -stable umass.c code, and also to try to take the latest -current umass.c code and massage it to play nicely with -stable. I've had success with both (also redoing my hacks against the latest source to try and clean out any lingering problems), but personally I prefer my hacks against -current, for several of my peripherals work with the result out-of-the-box, while I needed to fudge around with quirks under RELENG_4 and not always with success. Nonetheless, I'll supply both sets of hacks for those who want to play things a bit more conservatively and review the diffs, as well as for those who gladly throw caution to the winds -- perhaps because -current has worked better for their devices. The following is taking HEAD's umass.c around 4.10-tag-time and adding the hacks below to it. With limited testing, it gives the desired da* entries from every slot of the card reader, and appears to mostly work with other umass devices, both usb1 and usb2, subject to problems known to exist without this hack (and which seem to be able to be solved with other patches). While I was hanging around the neighbourhood, I decided to implement the NO_GETMAXLUN quirk that is mentioned, and add my USB disk that can benefit from this (well, actually, I benefit as my reboots are shortened significantly). --- /stand/FreeBSD4-src/source-hacks/sys/dev/usb/umass.c-CURRENTThu May 27 22:00:19 2004 +++ /stand/FreeBSD4-src/source-hacks/sys/dev/usb/umass.cTue Jun 8 11:48:37 2004 @@ -112,6 +112,8 @@ #include sys/module.h #include sys/bus.h #include sys/sysctl.h +/* HACK stable below... */ +#include machine/clock.h #include dev/usb/usb.h #include dev/usb/usbdi.h @@ -125,6 +127,8 @@ #include cam/scsi/scsi_all.h #include cam/scsi/scsi_da.h +/* HACK stable below... */ +#include sys/devicestat.h #include cam/cam_periph.h #ifdef USB_DEBUG @@ -369,6 +373,12 @@ UMASS_PROTO_SCSI | UMASS_PROTO_BBB, NO_QUIRKS }, +/* XXX HACK */ + { USB_VENDOR_MAXTOR, USB_PRODUCT_MAXTOR_5000, RID_WILDCARD, + UMASS_PROTO_SCSI | UMASS_PROTO_BBB, + NO_GETMAXLUN + }, +/* XXX HACK */ { USB_VENDOR_MELCO, USB_PRODUCT_MELCO_DUBPXXG, RID_WILDCARD, UMASS_PROTO_SCSI | UMASS_PROTO_BBB, FORCE_SHORT_INQUIRY | NO_START_STOP | IGNORE_RESIDUE @@ -437,6 +447,10 @@ UMASS_PROTO_ATAPI | UMASS_PROTO_CBI_I, FORCE_SHORT_INQUIRY }, + { 0x090a, 0x1100, RID_WILDCARD, + UMASS_PROTO_UFI | UMASS_PROTO_CBI, + NO_QUIRKS + }, { VID_EOT, PID_EOT, RID_EOT, 0, 0 } }; @@ -1055,7 +1069,8 @@ /* Get the maximum LUN supported by the device. */ - if ((sc-proto UMASS_PROTO_WIRE) == UMASS_PROTO_BBB) + if ((sc-proto UMASS_PROTO_WIRE) == UMASS_PROTO_BBB + !(sc-quirks NO_GETMAXLUN)) sc-maxlun = umass_bbb_get_max_lun(sc); else sc-maxlun = 0; @@ -1392,6 +1407,8 @@ { struct umass_softc *sc = (struct umass_softc *) priv; usbd_xfer_handle next_xfer; +/* HACK from below */ + int Residue; KASSERT(sc-proto UMASS_PROTO_BBB, (%s: umass_bbb_state: wrong sc-proto 0x%02x\n, @@ -1565,7 +1582,6 @@ UGETDW(sc-csw.dCSWSignature) == CSWSIGNATURE_OLYMPUS_C1) USETDW(sc-csw.dCSWSignature, CSWSIGNATURE); - int Residue; Residue = UGETDW(sc-csw.dCSWDataResidue); if (Residue == 0 sc-transfer_datalen - sc-transfer_actlen != 0) @@ -2515,7 +2531,36 @@ } case XPT_CALC_GEOMETRY: { - cam_calc_geometry(ccb-ccg, /*extended*/1); + /* XXX HACK take this from -CURRENT cam/cam.c */ + /* cam_calc_geometry(ccb-ccg, / *extended* /1); */ + /* +* Common calculate geometry fuction +* +* Caller should set ccg-volume_size
Re: newbie question - users deleted after playing with sysinstall
On Tue, Jun 08, 2004 at 11:38:13AM +0300, Haim Ashkenazi typed: Hi I've just finished install FreeBSD 4.10 for the first time. I'm an experienced linux user, but have no experience with FreeBSD. after a very basic installation (only the first step, to get ssh) I've put the computer at my ISP (of-course everything is blocked by a firewall) and continued from home. I then installed some packages from the Distribution menu, and played with the menus to see what I can configure. today, I couldn't login to the computer (ssh), and when I checked (I had someone there who logged in locally) I found out root has no password and the regular user I created was gone. my question is: could something I've done in sysinstall delete the user and root password? it's not likely that someone broke into the system because it's completely blocked (only open from my IP). Yes, that very likely. For instance, if you install the bin distribution more than once, it'll overwrite all files in /etc, including master.passwd each time you do that. Ruben thanx -- Haim ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-stable To unsubscribe, send any mail to [EMAIL PROTECTED] ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-stable To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: newbie question - users deleted after playing with sysinstall
user I created was gone. my question is: could something I've done in sysinstall delete the user and root password? Did you install the 'bin' distribution? I think it overwrites /etc/passwd but I believe there is backup left at /var/backups Regards, David Garcia Watkins [EMAIL PROTECTED] ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-stable To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: newbie question - users deleted after playing with sysinstall
On Tue, 08 Jun 2004 12:26:57 +0200, Ruben de Groot wrote: On Tue, Jun 08, 2004 at 11:38:13AM +0300, Haim Ashkenazi typed: Hi I've just finished install FreeBSD 4.10 for the first time. I'm an experienced linux user, but have no experience with FreeBSD. after a very basic installation (only the first step, to get ssh) I've put the computer at my ISP (of-course everything is blocked by a firewall) and continued from home. I then installed some packages from the Distribution menu, and played with the menus to see what I can configure. today, I couldn't login to the computer (ssh), and when I checked (I had someone there who logged in locally) I found out root has no password and the regular user I created was gone. my question is: could something I've done in sysinstall delete the user and root password? it's not likely that someone broke into the system because it's completely blocked (only open from my IP). Yes, that very likely. For instance, if you install the bin distribution more than once, it'll overwrite all files in /etc, including master.passwd each time you do that. yep, that's exactly what I did. well, I just wanted to be sure that nobody broke into my system. thanx -- Haim ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-stable To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Viewing SSH Connection
Hello Daniel, Tuesday, June 8, 2004, 12:37:13 AM, you wrote: If someone has root then you couldn't prevent them using watch, simple as that. (They might have to reboot first but..) That's true... He would need to set securelevel in i.e. rc.conf and then do schg on all rc files, but that still would allow to use it for person who have physical access to the machine. -- Best regards, Dariuszmailto:[EMAIL PROTECTED] CCNA, SCSA, SCNA, LPIC, MCP certified http://www.takeda.tk ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-stable To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Viewing SSH Connection
Kyle Mott wrote: Hi. I was wondering if anyone knows of a way to 'view' what another person is typing over an SSH terminal? Essentially, I want a friend to be able to look at what I'm typing real-time into the console. We will both be connected to the server via SSH. Is there a way to do this? If this is not possible, are there any other options (aside from using Telnet)? if the two of you can log in as the same user your 'friend' can easily use screen -x to go into multiview mode once you start your screen session. cheers, twkonefal -- * Tomasz Konefal * * Systems Administrator * * Command Post Transfer Corporation * ( +1-416-585-9995 349 ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-stable To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: HEADSUP!!! USB MFC committed..
Barry, Any chance these changes might fix the urio/rioutil problem I reported[1]? From what I can tell these are addressed to umass issues, so I suspect not, but since something broke in 4.x and not in 5.x, I'm optimistic it'll work again in 4.x. [1] http://www.freebsd.org/cgi/getmsg.cgi?fetch=165263+169117+/usr/local/www/db/text/2004/freebsd-stable/20040411.freebsd-stable http://www.freebsd.org/cgi/getmsg.cgi?fetch=117015+120633+/usr/local/www/db/text/2004/freebsd-stable/20040523.freebsd-stable -Andrew- -- ___ | -Andrew J. Caines- Unix Systems Engineer [EMAIL PROTECTED] | | They that can give up essential liberty to obtain a little temporary | | safety deserve neither liberty nor safety - Benjamin Franklin, 1759 | ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-stable To unsubscribe, send any mail to [EMAIL PROTECTED]
'ps aux' odditiy
I just finished doing a buildworld in multi-user mode (which seemed to work OK... though only time will tell :D) to RELENG_4. However, when I run 'ps aux', the output seems to be inverted... IE processes with lower PID's are on the bottom. Is this normal? Here's an example: USER PID %CPU %MEM VSZ RSS TT STAT STARTED TIME COMMAND root 33444 77.7 3.5 13640 13512 p0 R+3:42PM 0:02.73 /usr/libexec/cc1plus -quiet -dumpbase opt_range.cc -march=pentiumpro root 33443 4.2 0.4 1696 1540 p0 S+3:42PM 0:00.13 /usr/libexec/cpp0 -lang-c++ -I. -I. -I.. -I../bdb/build_unix -I../inn root 33442 0.0 0.1 308 200 p0 S+3:42PM 0:00.01 cc -DMYSQL_SERVER -DDEFAULT_MYSQL_HOME=/usr/local -DDATADIR=/var/d root 33440 0.0 0.1 664 476 p0 S+3:42PM 0:00.01 /bin/sh ../depcomp cc -DMYSQL_SERVER -DDEFAULT_MYSQL_HOME=/usr/local root 33438 0.0 0.1 636 448 p0 S+3:42PM 0:00.00 /bin/sh -ec source='opt_range.cc' object='opt_range.o' libtool=no de nagios 33431 0.0 0.1 460 244 ?? S 3:42PM 0:00.00 /sbin/ping -n -c 5 192.168.30.1 nagios 33430 0.0 0.2 996 704 ?? S 3:42PM 0:00.01 /usr/local/libexec/nagios/check_ping -H 192.168.30.1 -w 100.0,20% -c nagios 33429 0.0 0.1 632 440 ?? S 3:42PM 0:00.00 sh -c /usr/local/libexec/nagios/check_ping -H 192.168.30.1 -w 100.0,2 nagios 33428 0.0 0.4 2408 1636 ?? S 3:42PM 0:00.00 /usr/local/bin/nagios -d /usr/local/etc/nagios/nagios.cfg [.. Taken out for the sake of brevity ..] daemon92 0.0 0.2 960 628 ?? Is3:07PM 0:00.00 /usr/sbin/portmap root 91 0.0 0.3 1388 1024 ?? S 3:07PM 0:00.02 /usr/sbin/ntpd -c /etc/ntp.conf -p /var/run/ntpd.pid root 89 0.0 0.3 1336 972 ?? Ss3:07PM 0:00.17 /usr/sbin/ntpd -c /etc/ntp.conf -p /var/run/ntpd.pid root 85 0.0 0.2 992 684 ?? Ss3:07PM 0:00.09 /usr/sbin/syslogd -ss -m 0 -f /etc/syslog.conf root 27 0.0 0.0 212 96 ?? Is8:07AM 0:00.00 adjkerntz -i root 9 0.0 0.0 00 ?? DL8:07AM 0:00.02 (vnlru) root 8 0.0 0.0 00 ?? DL8:07AM 0:01.42 (syncer) root 7 0.0 0.0 00 ?? DL8:07AM 0:00.43 (bufdaemon) root 6 0.0 0.0 00 ?? DL8:07AM 0:00.00 (vmdaemon) root 5 0.0 0.0 00 ?? DL8:07AM 0:00.01 (pagedaemon) root 4 0.0 0.0 00 ?? DL8:07AM 0:00.00 (usbtask) root 3 0.0 0.0 00 ?? DL8:07AM 0:00.24 (usb0) root 2 0.0 0.0 00 ?? DL8:07AM 0:00.00 (taskqueue) root 1 0.0 0.1 556 336 ?? SLs 8:07AM 0:00.20 /sbin/init -- root 33450 0.0 0.1 516 248 p1 R+3:42PM 0:00.00 ps aux root 0 0.0 0.0 00 ?? DLs 8:07AM 0:00.00 (swapper) root 33445 0.0 0.2 956 704 p0 S+3:42PM 0:00.00 /usr/libexec/elf/as -o opt_range.o - [EMAIL PROTECTED]:~# Did I break something? (Again!?) -Kyle Mott ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-stable To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Problems with 4.10 and mysql
Could I ask how you are running MySQL in your jail? I have installed MySQL in a jail environment on 4.10, but it won't start due to: Bind on unix socket: Permission denied In answer to my own question, I discovered that the permissions on my jailed /tmp were incorrect. Changing to the correct 1777 allows mysql to run just fine. -- Joel Hatton -- Security Analyst and FIRST Representative | Hotline: +61 7 3365 4417 AusCERT - Australia's national CERT| Fax: +61 7 3365 7031 The University of Queensland | WWW: www.auscert.org.au Qld 4072 Australia | Email: [EMAIL PROTECTED] ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-stable To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: 'ps aux' odditiy
Seems normal to me. I don't remember ps output being in order, unless you pipe it to sort. Jeff Love Burgh Gaming I just finished doing a buildworld in multi-user mode (which seemed to work OK... though only time will tell :D) to RELENG_4. However, when I run 'ps aux', the output seems to be inverted... IE processes with lower PID's are on the bottom. Is this normal? Here's an example: USER PID %CPU %MEM VSZ RSS TT STAT STARTED TIME COMMAND root 33444 77.7 3.5 13640 13512 p0 R+3:42PM 0:02.73 /usr/libexec/cc1plus -quiet -dumpbase opt_range.cc -march=pentiumpro root 33443 4.2 0.4 1696 1540 p0 S+3:42PM 0:00.13 /usr/libexec/cpp0 -lang-c++ -I. -I. -I.. -I../bdb/build_unix -I../inn root 33442 0.0 0.1 308 200 p0 S+3:42PM 0:00.01 cc -DMYSQL_SERVER -DDEFAULT_MYSQL_HOME=/usr/local -DDATADIR=/var/d root 33440 0.0 0.1 664 476 p0 S+3:42PM 0:00.01 /bin/sh ../depcomp cc -DMYSQL_SERVER -DDEFAULT_MYSQL_HOME=/usr/local root 33438 0.0 0.1 636 448 p0 S+3:42PM 0:00.00 /bin/sh -ec source='opt_range.cc' object='opt_range.o' libtool=no de nagios 33431 0.0 0.1 460 244 ?? S 3:42PM 0:00.00 /sbin/ping -n -c 5 192.168.30.1 nagios 33430 0.0 0.2 996 704 ?? S 3:42PM 0:00.01 /usr/local/libexec/nagios/check_ping -H 192.168.30.1 -w 100.0,20% -c nagios 33429 0.0 0.1 632 440 ?? S 3:42PM 0:00.00 sh -c /usr/local/libexec/nagios/check_ping -H 192.168.30.1 -w 100.0,2 nagios 33428 0.0 0.4 2408 1636 ?? S 3:42PM 0:00.00 /usr/local/bin/nagios -d /usr/local/etc/nagios/nagios.cfg [.. Taken out for the sake of brevity ..] daemon92 0.0 0.2 960 628 ?? Is3:07PM 0:00.00 /usr/sbin/portmap root 91 0.0 0.3 1388 1024 ?? S 3:07PM 0:00.02 /usr/sbin/ntpd -c /etc/ntp.conf -p /var/run/ntpd.pid root 89 0.0 0.3 1336 972 ?? Ss3:07PM 0:00.17 /usr/sbin/ntpd -c /etc/ntp.conf -p /var/run/ntpd.pid root 85 0.0 0.2 992 684 ?? Ss3:07PM 0:00.09 /usr/sbin/syslogd -ss -m 0 -f /etc/syslog.conf root 27 0.0 0.0 212 96 ?? Is8:07AM 0:00.00 adjkerntz -i root 9 0.0 0.0 00 ?? DL8:07AM 0:00.02 (vnlru) root 8 0.0 0.0 00 ?? DL8:07AM 0:01.42 (syncer) root 7 0.0 0.0 00 ?? DL8:07AM 0:00.43 (bufdaemon) root 6 0.0 0.0 00 ?? DL8:07AM 0:00.00 (vmdaemon) root 5 0.0 0.0 00 ?? DL8:07AM 0:00.01 (pagedaemon) root 4 0.0 0.0 00 ?? DL8:07AM 0:00.00 (usbtask) root 3 0.0 0.0 00 ?? DL8:07AM 0:00.24 (usb0) root 2 0.0 0.0 00 ?? DL8:07AM 0:00.00 (taskqueue) root 1 0.0 0.1 556 336 ?? SLs 8:07AM 0:00.20 /sbin/init -- root 33450 0.0 0.1 516 248 p1 R+3:42PM 0:00.00 ps aux root 0 0.0 0.0 00 ?? DLs 8:07AM 0:00.00 (swapper) root 33445 0.0 0.2 956 704 p0 S+3:42PM 0:00.00 /usr/libexec/elf/as -o opt_range.o - [EMAIL PROTECTED]:~# Did I break something? (Again!?) -Kyle Mott ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-stable To unsubscribe, send any mail to [EMAIL PROTECTED] ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-stable To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: 'ps aux' odditiy
Hello jl, Tuesday, June 8, 2004, 5:20:47 PM, you wrote: Seems normal to me. I don't remember ps output being in order, unless you pipe it to sort. Yeah it was, I just checkend and output is also randomized. It's because of how linklists in C works, when you add to linklist an element then the element is added on beginning, so actually on the beginning you should see programs that were recently started or forked, and on the end the oldest programs. -- Best regards, Dariuszmailto:[EMAIL PROTECTED] CCNA, SCSA, SCNA, LPIC, MCP certified http://www.takeda.tk ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-stable To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: 4.9-STABLE -- 4.8-RELEASE downgrade. Pitfalls?
wrote Chuck Swiger thusly... Parv wrote: [ ... ] Port making will fail if you keep ports trees updated at least due to use of new make(1) syntax introduced, in 4.9, in a port's Makefile. The problem i noticed was related to use of parenthesis in .if ... .endif structure. Thanks for the response, Parv, but ugh! I cringe at the notion that continually tweaking make and the port Makefiles causes problems with backwards compatibility to a still-supported FreeBSD release. That looks like the message that i sent to one of the FreeBSD lists. After searching PR database, it seems somebody else found the exact reason... http://www.FreeBSD.org/cgi/query-pr.cgi?pr=ports/60288 I think life w/ NetBSD would not be so bad via its FreeBSD ports equivalent pkgsrc. One other known benefit, via pkgviews, is that multiple versions of a particular an be simultaneously installed/used at the cost of use of many symbolic links. Here are some things on pkgsrc ... http://www.NetBSD.org/~jlam/pkgsrcCon/presentations.html http://www.NetBSD.org/Documentation/pkgsrc/ http://www.NetBSD.org/Documentation/software/packages.html http://www.NetBSD.org/Documentation/software/pkgviews.pdf The last time i read papers/slides listed on pkgsrcCon, ugly symbolic links would have been the only problem for me after the problem of potentially missing ported software that i currently use on FreeBSD. (No, i have not checked the pkgsrc list). Mind you that i have no experience of NetBSD or pkgsrc, so both may have their own problems currently unknown to me. - Parv -- ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-stable To unsubscribe, send any mail to [EMAIL PROTECTED]