27,066 reputation
42269
bio website
location Marseille, France
age 33
visits member for 1 year, 8 months
seen 5 hours ago

I've been using Linux since 1998 or 1999 when I installed my first Mandrake (which has since morphed into Mandriva), I then moved to SuSe and then openSuSe when that came out. I used Ubuntu when it first came out, then moved to Linux Mint and have now been using Linux Mint Debian Edition (which is Debian testing but more green) for the last few years. I've also spent a lot of time working on first RedHat and then Fedora systems because that's what was available in the lab I worked in.

My Linux expertise, if I can grace it with such a lofty title, is mostly on manipulating text and regular expressions since that represents a large chunk of my daily work.

I'm also active on a variety of other SE sites:

profile for terdon on Stack Exchange, a network of free, community-driven Q&A sites


Apr
17
awarded  Investor
Apr
17
comment How can I get the version of the pgrep & pkill commands?
Huh, that's a bug in Ubuntu then. It is listed in the man pages on Debian (well, LMDE at least) and Ubuntu 13.10.
Apr
17
comment How can I get the version of the pgrep & pkill commands?
Huh, OK. But according to the man page, that would be the version the object modules were used to construct a file, not the version of the pgrep itself then but of the libraries used to compile it right?
Apr
17
comment fatal: bad ownership or modes for chroot directory component “/”
I have no idea, you must have changed something :). The latest error is probably because of the Subsystem sftp internal-sftp, again, no idea why you would be using this.
Apr
17
comment How can I get the version of the pgrep & pkill commands?
It's not? What system are you on? It's documented quite clearly on my Debian. It's the penultimate option mentioned, just above -h.
Apr
17
revised How can I get the version of the pgrep & pkill commands?
Removed images. Please don't post screenshots of your terminal. It just adds unnecessary overhead and renders the post opaque to text-to-speech software and google.
Apr
17
comment How can I get the version of the pgrep & pkill commands?
But where's the version string in the output you show? Also, what seems to be an OSX (BSD?) command, I can't find or install it on my Debian.
Apr
17
comment fatal: bad ownership or modes for chroot directory component “/”
Huh? Did you restart the ssh server? Are you still getting the fatal: bad ownership or modes for chroot directory component "/" error?
Apr
17
comment fatal: bad ownership or modes for chroot directory component “/”
Why do you have ChrootDirectory at all? That expects a directory that looks like a Unix /. It needs things like /dev, /bin/sh etc. The user connects to their $HOME by default and this is not the way to have them connect to another directory.
Apr
17
comment fatal: bad ownership or modes for chroot directory component “/”
Just do sudo chown username /home/username. But, I'm afraid your question is off topic here. Both OSX and Debian are. This should instead be posted on Unix & Linux. I have flagged your post for mod attention and asked them to migrate, it should happen automatically. In the meantime, your problem is the ChrootDirectory /home/username. Why do you need that? You can't chroot into a $HOME directory and that is not needed if all you want is to start the seession in the users $HOME.
Apr
17
comment fatal: bad ownership or modes for chroot directory component “/”
Please clarify the host and client computer. For each of the files listed, you need to tell us whether they are on the client or the host. You also haven't told us what OS the two machines are running and you haven't shown us the actual ssh command you use to connect. Please edit your question and include this information. You might also want to include the output of ssh -v user@host. Also, you did chown root /home/username? Why in the world would you do that? That will break your user's login and cause pretty much what you're describing.
Apr
16
reviewed Close login 'authentication failure' by non-root user, can login only by root
Apr
16
reviewed Leave Open Masquerade not working sometimes
Apr
16
comment Masquerade not working sometimes
Please delete your question from server fault, cross-posting is frowned upon.
Apr
16
comment Need to run su command If I am a user with sudo access
@PavelŠimerda I know, I said that I don't know of any non-Debian distro that disables root by default. Then again, it's been a while since I installed anything not Debian derived so I might be wrong.
Apr
16
awarded  Nice Answer
Apr
16
comment How to exclude some files not matching certain extensions with grep?
@IDAllen no, note that I suggested -exec + not -exec \;, that will run as few commands as possible, much like xargs.
Apr
16
comment How to exclude some files not matching certain extensions with grep?
@IDAllen and I just read your previous comment. Thanks again, that should have been obvious, but I blindly copied the OPs version.
Apr
16
revised How to exclude some files not matching certain extensions with grep?
added 2 characters in body
Apr
16
comment How to exclude some files not matching certain extensions with grep?
@IDAllen very good point on the ., fixed and thanks. I don't understand your other point though. I am not looking for js, I am looking for OK and want to exclude files that end in js unless they end in debug.js. Am I still missing something?