Re: Build error nasm
See the links below, see where the macro files that the second link mentions are at and then try setting your GROFF_TMAC_PATH environmental variable as the first link suggests. http://lists.freebsd.org/pipermail/freebsd-current/2003-May/002827.html http://freebsd.monkey.org/freebsd-questions/200311/msg01114.html On Wed, Mar 2, 2011 at 9:56 AM, Bernt Hansson wrote: > Hello list > > Trying to build nasm-2.09.04,1 > > Bails out at > > cc -c -O2 -pipe -fno-strict-aliasing -W -Wall -std=c99 -pedantic > -DHAVE_CONFIG_H -I. -I. -o regdis.o regdis.c > cc -o ndisasm ndisasm.o disasm.o sync.o nasmlib.o ver.o insnsd.o insnsb.o > insnsn.o regs.o regdis.o > nroff -man nasm.1 > nasm.man > troff: fatal error: can't find macro file tty-char > gmake: *** [nasm.man] Fel 1 > *** Error code 1 > > and if I try man man > > # man man > Formatting page, please wait...troff: fatal error: can't find macro file > tty-char > Failed. > troff: fatal error: can't find macro file tty-char > > Don't really know what to do. > ___ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org" > ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
Re: regex question....
On Sat, Dec 4, 2010 at 5:26 PM, Gary Kline wrote: > I have tried :1,$/s/[0-9]][0-9][0-9]/foo/g Why not just %s/[0-9]*/foo/g -- Thanks, Joshua Gimer --- http://www.linkedin.com/in/jgimer http://twitter.com/jgimer http://itsecops.blogspot.com/ ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
Re: Too many defunct processes; kill -9 not working
On Wed, Jun 9, 2010 at 5:08 AM, Eitan Adler wrote: > > What can I do to determine why processes are not getting killed by kill -9? > > Try attaching to it using truss to see if it will shed some light on the reason why the process will not die. http://www.unix.com/man-page/FreeBSD/1/truss/ -- Thanks, Joshua Gimer --- http://www.linkedin.com/in/jgimer http://twitter.com/jgimer http://itsecops.blogspot.com/ ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
Re: Why?? (prog question)
main(int argc, char *argv[]) On Mon, Mar 30, 2009 at 8:57 PM, Gary Kline wrote: > people, i've been under the weather for days and will probably be for a few > more. > new and TEMPORARY meds dont like me, ugh. > > can anybody clue me in why the followin joinline program fails to catch if > argc == 1? > > > /* > * simple prog to join all | very nearly all lines of a text file that > * make up one paragraph into one LONG line. > * > * paragraphs are delimiated by a single \n break. > */ > > #include > #include > #include > > main(int argc, char argv[]) > { > char buf[65536]; > > if (argc == 1) > { > printf("Usage: %s < file > newfile\n", argv[0]); > exit (-1); > } > while (fgets(buf, sizeof buf, stdin) ) > { > if (*buf == '\n') > { > fprintf(stdout, "\n\n"); > } > else > { > buf[strlen(buf)-1] = ' '; > fputs(buf, stdout); > } > } > } > > > -- > Gary Kline kl...@thought.org http://www.thought.org Public Service Unix > http://jottings.thought.org http://transfinite.thought.org > The 2.41a release of Jottings: http://jottings.thought.org/index.php > > ___ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org" > -- Thx Joshua Gimer ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
Re: Why?? (prog question)
Just 5 minutes too late. :) On Mon, Mar 30, 2009 at 9:13 PM, Joshua Gimer wrote: > main(int argc, char *argv[]) > > On Mon, Mar 30, 2009 at 8:57 PM, Gary Kline wrote: >> people, i've been under the weather for days and will probably be for a few >> more. >> new and TEMPORARY meds dont like me, ugh. >> >> can anybody clue me in why the followin joinline program fails to catch if >> argc == 1? >> >> >> /* >> * simple prog to join all | very nearly all lines of a text file that >> * make up one paragraph into one LONG line. >> * >> * paragraphs are delimiated by a single \n break. >> */ >> >> #include >> #include >> #include >> >> main(int argc, char argv[]) >> { >> char buf[65536]; >> >> if (argc == 1) >> { >> printf("Usage: %s < file > newfile\n", argv[0]); >> exit (-1); >> } >> while (fgets(buf, sizeof buf, stdin) ) >> { >> if (*buf == '\n') >> { >> fprintf(stdout, "\n\n"); >> } >> else >> { >> buf[strlen(buf)-1] = ' '; >> fputs(buf, stdout); >> } >> } >> } >> >> >> -- >> Gary Kline kl...@thought.org http://www.thought.org Public Service Unix >> http://jottings.thought.org http://transfinite.thought.org >> The 2.41a release of Jottings: http://jottings.thought.org/index.php >> >> ___ >> freebsd-questions@freebsd.org mailing list >> http://lists.freebsd.org/mailman/listinfo/freebsd-questions >> To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org" >> > > > > -- > Thx > Joshua Gimer > -- Thx Joshua Gimer ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
Re: ftp with .... ?
Are you sure that the suid bit will not provide the functionality that you require? I would make sure that the proper user owns the directory and then set its suid bit (chmod u+s /mnt/) If I am missing something please let me know. On Tue, Mar 31, 2009 at 3:13 PM, Vasadi I. Claudiu Florin wrote: > > Hello guys, > > Here's the deal: > I have a samba server on a FreeBSD 7.1-STABLE running with mod-acl (or > whatever it's called). The folder it is connected to (let's call it "share") > has acl enabled. Thus all data written with samba (from my xp box) > automagicly inharits permision of parent folder (root:wheel). Perfect till > now. > > This is were the catch catches up. I also want ftp access to that folder (a > master ftp account that only I will know) but also want it with acl > "features"; I mean all files written by/through ftp will (or must) have > inherited parent directory permisions, leaving samba full permisions over > files/folder in that directory (as stated by acl). > > Here's the curent setup > the "share" folder (actually "/mnt") > # file: /mnt/ > # owner: root > # group: wheel > user::rwx > user:smbadmin:rwx > user:ftpadmin:rwx > group::--- > mask::rwx > other::--- > > As you can see, the owner is root:wheel. The samba master acount is > "smbadmin" with rwx privileges. > Now, I wish to employ another username, also with rwx privileges, for a > master ftp account (say "ftpadmin"), but all files writen by this user > *will* eventually end up on disk as root:wheel, not ftpadmin:group. > > What I've done so far. > Read a bit about chmod +s and by "chmod g+s" managed to ensure that whoever > writes files to that folder, end up belonging to wheel group. Didn't manage > on the other hand to employ the same thing for the user. Files are owned by > "ftpadmin" > > Of course I could add these accounts into one big group, but then, were > would all the fun be ? :) > And also, I would have a terrible time when say another ftp user would be > required to have some sort or acces but diferent from that group I > previously mentioned (say r--). > > Now, from what I tinkered about I need some sort of control "agent" between > the actual ftp and the disk (something similar to mod-acl of samba maybe?) > or force the files that are to be written to disk to change theyre usr:group > by some chmod-similar manner. > > > Please point me in the right direction. A link, an ideea ... something. Am > capable of doing it myself, no need for "please do this for me"..nono. > > So ? > ___ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org" > -- Thx Joshua Gimer ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
Re: ftp with .... ?
What user is your ftp daemon running as? On Wed, Apr 1, 2009 at 2:08 AM, Vasadi I. Claudiu Florin wrote: > On Wed, 01 Apr 2009 03:53:09 +0300, Joshua Gimer wrote: > >> Are you sure that the suid bit will not provide the functionality that >> you require? > > It provides it, but only half of it. Did "chmod g+s /mnt" and "chmod u+s > /mnt" but when I create a file with "ftpadmin" through a ftp the file has > ftpadmin:wheel (Parent directory belongs to root:wheel). Maybe it cannot > change to root ? That would be strainge, seing how samba can do it (then > again samba has a module for this) > >> I would make sure that the proper user owns the directory > > They are > >> and then set its suid bit (chmod u+s /mnt/) > > Already did that. > > -- Thx Joshua Gimer ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
Re: Recovering loss of /var/db/pkg ?
You could try to recover the file from the disk if it has not been reallocated using something like The Sleuth Kit: http://www.sleuthkit.org/ You can use fls to find the location of the file on the disk and then icat to recover. On Wed, Apr 8, 2009 at 12:29 PM, Mark Stosberg wrote: > > I'll just say it plainly: > > /var/db/pkg is long gone and there is no backup. It was not copied to > new a machine. > > Is there is any hope of being able to use the ports or packages system in a > meangingful way again? > > My sense is that some recovery is possible, but may be prohibitively > expensive. > > Thanks for any tips! > > Mark > > > ___ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org" > -- Thx Joshua Gimer ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
Re: cannot kill process with kill -9
You might also find a little bit information about what the process is waiting on by attaching to it with strace (in ports under devel) (strace -p PID). On Thu, Apr 9, 2009 at 5:47 AM, Eray Aslan wrote: > On Thu, Apr 09, 2009 at 09:41:31AM +0200, Pieter Donche wrote: >> I have a mount_nfs process that refuses to get killed : >> # ps -jaxw | grep mount >> root 60342 1 60289 60289 0 D ?? 0:00.00 mount_nfs > [...] >> How to I get this process killed? > > reboot. You can't kill a process with a D flag. Google for > uninterruptible sleep. > > -- > Eray > ___ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org" > -- Thx Joshua Gimer ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"