« first day (1326 days earlier)      last day (3622 days later) » 
00:00 - 21:0021:00 - 00:00

12:23 AM
Hi @MichaelMrozek, moderator for Code Review here. I'd like to discuss the migration of this question:
0
Q: Are there any problems with this script typos || poor methods

James AndinoIn terms of general security, am I doing anything wrong in this script? #!/bin/bash set -e #apt-get update #apt-get upgrade export ___DIRNAME ___DIRNAME=' SOURCE="${BASH_SOURCE[0]}" while [ -h "$SOURCE" ];do __DIRNAME="$(builtin cd -P "$(dirname "$SOURCE")" && pwd)" SOURCE="$(readlink "$SO...

 
12:33 AM
0
Q: Script to configure accounts, SSHD, and firewall

James AndinoIn terms of general security, am I doing anything wrong in this script? #!/bin/bash set -e #apt-get update #apt-get upgrade export ___DIRNAME ___DIRNAME=' SOURCE="${BASH_SOURCE[0]}" while [ -h "$SOURCE" ];do __DIRNAME="$(builtin cd -P "$(dirname "$SOURCE")" && pwd)" SOURCE="$(readlink "$SO...

 
slm
12:45 AM
@200_success - did you not want that migrated?
 
It's not a black-and-white situation.
 
slm
@200_success - it rarely is 8-)
 
The summary is, on Code Review we have a requirement that a question must contain "working" code to be on-topic. (Otherwise, we turn into a debugging service.)
 
slm
@200_success - yes reading it now
@200_success - see the issues now. If I see other Q's going that way I'll be sure to let others know.
 
There were a few bugs in the code, so I put it On Hold, according to our usual procedure. Normally, that gives the author some time to bring it up to quality standards. But in this case, it also automatically rejected the migration.
That said, it's not fundamentally a "bad" question.
There would be interesting issues to point out in a Code Review, such as ensuring the /root/SECRET gets 0600 permissions before you write to it.
Now, let me turn the question around: why was the question off-topic for U&L?
It doesn't seem to violate any of the criteria on unix.stackexchange.com/help/on-topic
Well, you aren't @MichaelMrozek, and the closure reason wasn't really specified, so I guess you can't speak for him.
Code Review's must-have-working-code requirement tends to catch a lot of people off-guard. We've prepared guidelines for migrating questions to Code Review:
10
Q: What questions are suitable for migration to Code Review, and how does the process work?

rolflConsider this situation: There is this question on another site which I think would be a good candidate for migration to Code Review. What should I consider before flagging the question, or actually migrating it?

 
slm
12:56 AM
@200_success - yeah I cannot speak for Michael as to why. It seems on topic to me as well, but he's been doing this a lot longer than I so I'd yield to his logic over mine 8-)
 
Consider a search on [meta.codereview] for [faq] migration to be its permalink.
 
@200_success if I'm not mistaken, the author asked for it
 
Interesting.
 
yep, we closed it first, and then it got migrated
> Besides that I haven`t tried to run it yet , out side smoking a cigarette right now .
umm... I see the problem
 
@200_success I can't speak for Michael, but I would say it's off topic because it's subjective. U&L does have a policy about subjective questions. unix.stackexchange.com/help/dont-ask
 
1:03 AM
Smoking is very bad for you.
But it's a Good Subjective question.
Certainly not an every-answer-is-valid kind of subjective question.
By the way, Code Review has the exact same don't-ask page.
 
@200_success my 2c: it's also not about Unix or Linux. It just runs on them. The question itself is "Anything wrong with my code"? That's off topic here. If it'd been "How can I do X on a *nix system?" it would have been fine.
 
@terdon However shell scripting is on-topic here
 
That depends… do you consider security to be an aspect of correctness? How about the lack of quoting in the script?
 
Yes, but the OP had already figured out how to do it. Dunno.
 
@Patrick closing is ok as long as long as the reason makese sense. but in that case the reason given was "too broad" which clearly does not apply. The question is clear and precise and specific. Anything but broad. Regardless what you might think of its quality.
 
1:13 AM
@FaheemMitha It was closed as OT, not too broad.
 
I would have thought the scripts were working too. Nothing in the question says they don't. They sound exactly like code review to me. So if they don't work, I'd say the blame lies on the asker for not clarifying that.
 
@terdon oh? not what i remember. one sec.
 
@200_success Yes, fair enough. It's the "please review my code for me" that's not really on topic IMO.
 
@terdon you must be thinking of a different question. this one was closed as too broad.
1
Q: Unix commands for generating random alphabet

user3331420I have to write a script for this program. choose a random letter within a-z. Ask the user to guess the letter, match it with the chosen letter. If matched, display "correct", else prompt if the guessed letter is above or below the chosen letter. Can someone demonstrate with examples of how I m...

 
@200_success We would need to first go through the script, understand what it does and then comment on whether it does it well. As a general rule, dumping 50 odd lines of code and asking for opinion feels OT to me.
 
1:15 AM
@terdon @FaheemMitha mixup. Faheem's reply was about a comment I made hours ago. current topic is a different question
 
Ah, right.
 
@FaheemMitha I'm fairly certain I chose "unclear what you're asking" on that question. When a question is closed, the final close reason is whatever the majority of people chose. So it simply means more people chose "too broad" than "unclear what you're asking"
 
It may be worth a post on [meta.unix] to clarify the U&L community's position. I don't know if you get these questions that often — perhaps also modify the on-topic page, and maybe also add a closure reason.
Anyway, @JamesAndino is welcome to fix the minor bugs to bring the question up to Code Review standards, then we'll reopen it.
Thank you all for this discussion.
 
@200_success Good idea. And our pleasure.
 
2:03 AM
@Patrick - that's not "pretty clear" - that's 4 upvotes on a 4 year old question.
 
2:13 AM
That's pretty obscure. How can you argue that a sentiment expressed in a question representing a rate of one upvote per year should speak for the entire community?
You seem to argue that anybody with reputation enough to do so should be a censor first and a voting member of the community second.
That's a seriously ugly philosophy from where I sit.
 
@200_success I pushed that question because the asker wanted it migrated, and we'd already closed it. I don't think it's particularly off-topic, but "review this code" questions don't tend to do well on U&L, so I saw no reason not to move it if the asker wanted it moved. I'm vaguely aware of Code Review's policy, but didn't realize there was anything wrong with the code, he said he just wanted a security review, which seemed to be the sort of thing you guys do
 
@Patrick I refer to this and your next post.
 
^ anyone interested feel free to share their opinion
 
That's an excellent idea, @Braiam - but it does come after the fact.
 
2:29 AM
@mikeserv and? what's your point?
we discussed it here, but at best is a informal discussion, in meta is more formal and people can vote
 
Probably true - but your question has a bit of a bent wouldn't you say?
My point is you still haven't answered the question I asked you earlier: Did you vote to close that question because you assumed the asker asked it for the wrong reason?
And besides, there have already been several examples of similar meta questions linked here - you linked one yourself, though it had been closed as off-topic previously.
And Patrick does the same above - a 4 year old post with 4 upvotes.
@Braiam - Is this new question supposed to answer something those others did not?
 
@mikeserv I voted it because is a bad question, and I don't want it in the site, specific reasons I won't give you more
 
@Braiam - Ahh - so you also seem to argue that anyone with the reputation to do so should be a censor first and a voting member of the community second, yes?
 
slm
Ppl are entitled to vote as they see fit, it's OK to scrutinize but we shouldn't be going on witch hunts either
there's a reason it takes 5
@mikeserv - it's a fine line, I often find myself as both a censor and a voting member
 
This isn't a witch-hunt; I'm trying to figure out the prevailing opinion around here. The more I run into things like these the less I want to be a member of the community.
Whatever happened to goldilocks?
 
slm
2:43 AM
I've made mistakes and others have called me out on it. But with rep you're encouraged to do both those tasks
 
@MichaelMrozek Thanks for the follow-up. Anything to add to the earlier chat thread?
 
slm
@mikeserv - I'm truly sorry you feel that way, I've always felt you an asset to this site and would hate for that to happen. I've only loosely followed the entire thread w/ you guys and do not want to dredge it all up.
I have not seen goldilocks in a while
 
I dunno - it needn't be dredged. It's not scum - me either.
But goldilocks would be all over this.
 
slm
sorry figure of speech, of course not
 
I know - my bad, @slm.
 
slm
2:47 AM
perhaps but I'd leave it to him to say for sure, but he has a tendency to champion these situations
 
Goldilocks would have like two or three essay length meta posts already.
 
slm
most likely 8-)
w/ <sub> references too
 
Yeah. And they'd be to obscure philosophical texts.
 
slm
I think braiam's approach is right to bring this up in meta, that way it's clear to all what's going on
 
Well, probably. But the title of his post represents something of a personal bent, I think.
 
slm
2:50 AM
I tried to clean up the Q a bit but I see the slant, but he's coming at it from the perspective of SO and AU having a similar policy so probably leaning towards we should be doing the same
 
Personally, when I see those questions, I look at the asker's history.
 
slm
I've tried to interject as well as gilles and others that we're OK w/ homework Q's. So these are a bit in that space, IMO as well.
as do I
 
For me it depends. If it's a 5 line script or so, I'm happy to answer. If it is a more serious one and the OP has done nothing on it, I am less interested.
 
slm
if it's just a taker then I find the Q's less and less of interest
 
Often those kinds of questions do generate good and informative answers, but a community member that asks only those kinds of questions, isn't the kind that is likely to contribute much more.
 
2:52 AM
@200_success Not really. We should probably decide if we're going to allow those questions or not, but looks like there's a meta question and the discussion is still on-going
 
@mikeserv the prevailing opinion will be in meta, mike. If you want to know what people think about a topic, the way is to ask in meta. I asked already, you want discussion, just upvote my question so it appears in the community bulletin
 
slm
@terdon - yes that's my position to a T on it
 
@Braiam - it already has been in meta.
 
slm
Can we wordsmith the title of the Q?
 
And ditto both to terdon and slm.
 
slm
2:53 AM
I hate to ask which ones...but which ones...
 
The 5-line thing.
 
@mikeserv when?
 
I'd rather not write 50 lines for a help-vampire.
Well, again, you linked it yourself earlier. And Patrick did as well.
 
slm
yes those are the ones I'm most concerned w/.
 
@terdon - do you remember Webby?
 
slm
2:55 AM
OK so the 2 we were discussing earlier then?
 
@mikeserv Yes. Not very fondly.
 
@slm the title, what's wrong?
 
slm
I was asking for the meta Q's
 
That guy was AWFUL.
Oh. well. I'll have to dredge....
 
Yeah...
 
slm
2:56 AM
@Braiam I have no issue w/ it but was opening it for discussion for mike's sake
 
yeah, I used the phrase everyone was used to @slm
actually is "send me teh codez" but this should work too
 
@mikeserv Oh man! Not machineA and machineB again!
 
Yes.
Ok, so @Braiam linked this one before:
289
A: How do I ask and answer homework questions?

Joel CoehoornThis is an attempt to reconcile two extreme positions in a way that is acceptable to the majority of the community: Some feel it's irrelevant that it's homework: always just answer with complete code. Some feel Stack Overflow is not the place for homework: close all homework questions immediate...

 
@terdon actually that is machineB and machineC :P
 
3:01 AM
Heh, he probably crashed B.
 
Haha.
Oh man! That guy was awful!
There was one more after that as well when he came back as the actual webby...
I commented on his post 'waring others away.
That was the last I saw of him.
And that's what I mean by an asker's history - I think it's better to take those kinds of things piecemeal based on the user account that generates them.
 
slm
I attempted to give my mental state diagram for dealing w/ these
0
A: How do you feel about "GIVE ME TEH CODEZ" questions?

slmAs a general rule. If the question is a few lines of an actual script and the OP is asking for advice and guidance I'll simply echo their script back with edits/modifications made as an answer, with descriptions where appropriate. If the question includes a 20+ lines of code "dump" with little ...

 
You've got my vote.
 
@mikeserv you know what's the median of votes in meta.AU?
3-10
and AU is several times bigger than UL is
 
I have no idea. I don't go there - and I have my own reasons. But the question that was closed that we're talking about is probably a better one than 9/10 that are asked there.
 
3:09 AM
in Tavern on the Meta on Meta Stack Exchange Chat, May 11 at 21:11, by Shog9
Quick quiz: what % of active SO users do y'all think participate (vote/ask/answer) on MSO?
 
And it wasn't a great question by U/L standards at all.
 
in Tavern on the Meta on Meta Stack Exchange Chat, May 11 at 21:20, by Shog9
@Undo 294,542 users active (post/vote) on SO during the past 30 days. 6,845 of them active on MSO. So, a hair over 2%
people actually don't check/participate in meta unless they got a problem
 
I believe that. That is probably the largest reason I don't go there.
 
@mikeserv I recommend you to read some of the links that I posted in the question about the topic, you can find them just using "codez" as search term in Meta Stack Exchange
 
@Braiam - I might do that. Thanks for the recommendation.
 
slm
3:18 AM
MSO and all the metas are a bit intimidating when you start out IMO
 
you mean MSE ;)
 
slm
yes yes
I've only gone there to learn how do things and then found the "other questions" there
 
Well, @goldilocks, if you're out there, come back.
 
do we need a canonical "error while loading shared libraries: lib.so: cannot open shared object file: No such file or directory" question?
 
@slm - that one busybox one? That's gotta be a result of a custom busybox build, I think. Don't you?
Probably not as built by the asker, but maybe for the Geexbox distro or something.
 
slm
3:31 AM
@mikeserv - yeah, I'm not else what it could be
 
They just left that out, I guess.
 
3:44 AM
New Ubuntu machine... trying to install a game... good luck...
 
4:27 AM
@slm, does this question make sense? :)
0
Q: New users posts review count calculation

RameshSuppose if I see a first post asked by a new user, I can use the edit button under the question and make the edits. Something as seen below. However, in the review queue, we have an option as First posts which has a gold badge for reviewing 1000 first posts. (As seen here). The edits tha...

 
 
1 hour later…
5:29 AM
@Patrick Ok. Well, "unclear what you're asking" doesn't fit either, because the question was clear.
 
@FaheemMitha Perhaps to you, but my comment indicates why I don't think it is.
 
slm
5:52 AM
@Ramesh - see my A to your meta
 
6:46 AM
Hey all. This has been flagged for migration to Unix & Linux, is it on topic? And if yes, is it clear enough for migration? (we try to avoid migrating crap)
-2
Q: How can I have a shell script log into a remote server and execute imqcmd there?

user3664498I want to make connection to the server through the shell script and want one commend to be executed through it. How can i do this? I am using linux and want to prepare a shell script which can login to the virtual directory server and execute a given command i.e if i want to execute imqcmd com...

 
slm
7:20 AM
@YannisRizos No it's crap in its current form, we'll just end up closing it.
 
slm
7:37 AM
@Patrick - replied to your email.
 
 
2 hours later…
9:46 AM
@Patrick - no, your comment does not indicate why it was unclear. Your comment indicates why you think it was clearly homework.
 
 
2 hours later…
12:14 PM
@mikeserv I usually have you on ignore for this reason, but this time I'll humor you. Tell me then, why do I think it was clearly homework?
 
12:55 PM
@Patrick - Ahh. Probably best to put me back on ignore then. I don't argue with those for whom I don't have respect enough to accept their argument. And what little I did have for you has just evaporated.
 
1:08 PM
@mikeserv are you sure you're not confusing Patrick's comment with mdpc's? It was the latter who mentioned homework, not Patrick.
 
That's possible, @terdon. I'll look again.
@terdon - you're right I did. That doesn't negate my last statement - anyone capable of speaking clearly on their own behalf would have said so themaelves , and would not have answered it first despite the previous statement: ' that's not "pretty clear" - that's 4 upvotes on a 4 year old question.

mikeservmikeserv
yst 19:13
That's pretty obscure. How can you argue that a sentiment expressed in a question representing a rate of one upvote per year should speak for the entire community?
You seem to argue that anybody with reputation enough to do so should be a censor first and a voting membe
The red herring is a primary logical fallacy.
 
@mikeserv yes, I read that yesterday and honesty have no idea where you're getting that from. Is this about that meta Q that says that we don't mind homework questions?
 
@terdon He's referring to:
What have you tried so far? What are you having problems with? We're happy to answer specific questions, but what you're asking for is someone to write a script for you. We're not here to do your work for you. — Patrick yesterday
 
No, it was in response to Patrick's assertion that the community's position is clear, though he only referenced a 4-years old meta post with 4 upvotes
 
Well, we're pretty small. We rarely get much more than that on meta Qs and "the community" is, well, us really. The hardcore of users who visit every day is pretty small.
 
1:18 PM
He then went on to say: "I can see arguments for both downvoting, and closing. I personally think closing is the right solution. "
 
In any case, the position described there seems reasonable: I won't do your homework for you, but I'd be happy to help you do it yourself.
 
I agree it's reasonable, and given that position I believe the best course of action is a downvote.
 
Well, he was hardly extreme about it: "I personally think closing is the right solution. But this is just my opinion, [...]"
 
But he seems advocate censoring first, voting later. That is unreasonable, as near as I can tell.
 
I'm quite partial to that really. For example, I answered a horrible Q the other day that just said: do my work for me. I answered cause it was an intriguing problem but I also voted to close regardless. Now, the OP has an answer and the post is closed to stave off such questions in the future.
Partial to closing "write this for me" questions.
And a lot of people here, Patrick included, write scripts for a living. It's kind of weird to be asked to write a 100 line script for free.
 
1:21 PM
I know you did - I read the transcript the other day. But you made an effort, didn't you? That's something. And you only opted for the close after the asker reversed the question, yes?
 
Yeah, cause I got pissed.
Had I not found the problem fun though, I would have voted to close as too broad immediately.
 
I agree with that as well, but the question we're referring to had nothing to do with 100 lines of script.
 
Well, in that case, I disagree with your stance as well. But I respect you enough to accept it.
 
Write my code for me is really not the kind of thing I, personally, would like to see here.
 
1:24 PM
Me either - though, as I said before, I think those kinds of problems are better approached per user than per question.
 
@mikeserv No, that would have been fine if the asked had at least i) specified a language and ii) actually attempted something dammit. Not just here, I need this, gimme!
 
Because, if nothing else, those kinds of questions, do sometimes generate worthwhile answers, right?
 
1
Q: Huawei 4G Dongle for Ubuntu 14.04

allenI'm using 3G USB Data card (Dongle) now, but it is not working on Ubuntu 14.04. So I am planning to buy Huawei 4G Dongle for multi SIM. Which Huawei 4G Modem could support on Ubuntu 14.04. Thank you.

 
@mikeserv Yes, but rarely ones that are useful to others as anything but examples.
 
1:25 PM
But what is more useful than an example?
 
Yes, examples are very useful.
 
@Braiam - that question makes zero sense if not taken from a mystical numerology perspective. And, if it is taken that way, it makes negative sense.
 
The thing is that these Qs tend to be very specific. It's unlikely that they will ever be found when people are searching for "how do I X?" since they were about "How do I X.a.b.c2?"
What is group and what are those other permissions? Thanks for response. — hellodear2 4 hours ago
Ugh, and he was applying for a job as a *nix admin?
 
@terdon - agreed. Not the one from yesterday "how to compare a single input key with lower-case letter" is what it amounted to. And, even still, a bad question should be downvoted - not censored.
 
Well, closing is not really censoring as such. The main idea is that we don't want "write my code for me" questions but are happy with "help me write my code please". Therefore, closing the type of question we don't like is useful since it sends a message about what is and is not acceptable here.
 
1:30 PM
^ this
 
I disagree. I think down voting sends that message clearer, and, what's more, makes less work for all.
 
Well, that's the cool thing about being a community. It takes 5 to tango :)
 
Closing a question costs you nothing. Down voting costs you a rep point.
 
Not on questions.
Downvoting questions is free.
 
It is? I didn't know that. But the 5 thing - or rather that there so frequently are 5 - is a big part of what has disenchanted me with this place. I learn less than I used to, and from those questions that might teach me I often find they've been closed to new answers.
 
1:34 PM
@mikeserv the problem is that you already got bored with crappy questions
and that's fine
 
You really should bring that up on meta. Personally, I don't think the "do my work for me" questions are very useful. I sometimes answer them myself if I'm in a good mood but always telling the OP that they're not a good idea.
 
I generally don't either, but they tend to come from the same person habitually if they're any kind of problem.
I think it's the user that needs targeting not the question.
@Braiam - I was bored with crappy questions a long time ago. I like questions about technique.
 
anyone remembers how to clear the dns cache?
 
Case in point:
No, we won't "tell you the awk script for this". We'd be happy to help you improve your try but you need to put some effort into it, don't expect us to just write it for you. What have you got so far? — terdon 19 secs ago
 
Yeah, I saw that one. dv, move on.
 
1:38 PM
Did.
 
What's worse is the ones that don't even ask.
 
@Braiam nscd? Should be SIGHUP iirc
 
I want to do this thing. Output will look like...
I sometimes comment... Is there a question here?
In fact, look at that one from the other day, @terdon.
I commented there.
 
Which?
 
The one where you worked 30mins on his thing, then the guy changed it up, then you closed it.
 
1:40 PM
what is the ip of sstatic.net? for me is 198.252.206.140
 
@Braiam same
 
grrr!
 
@Braiam yap same
 
and cdn.sstatic.net?
cdn.sstatic.net.	3366	IN	CNAME	sstatic.net.cdn.cloudflare.net.
sstatic.net.cdn.cloudflare.net.	176 IN	A	190.93.245.58
sstatic.net.cdn.cloudflare.net.	176 IN	A	141.101.114.59
sstatic.net.cdn.cloudflare.net.	176 IN	A	190.93.247.58
sstatic.net.cdn.cloudflare.net.	176 IN	A	190.93.246.58
sstatic.net.cdn.cloudflare.net.	176 IN	A	190.93.244.58
 
@Braiam same
 
1:42 PM
same
 
@mikeserv heh, yes, he outsourced all right, to us!
 
Exactly - I get it, you know. But that should be dealt with on a user by user basis, I think.
 
yup, all is normal again
 
Sometimes, yes. I've seen users understand and improve their questions. However, leaving things like that open can lead to people finding the post on Google and thinking "Cool, these guys will do my work for me". Closing avoids that. That's the theory at least.
 
Well, our theories differ. Specifically, I think they're a lot less likely to find a -1 question on google than a +10.
 
1:48 PM
on the other side of the world:
 
@mikeserv Perhaps. But I don't want them to find an open question.
 
@Braiam haha :P
 
The problem with that logic is you also miss out on a possible answer.
Someone that could answer it may also find it on google.
Stephane's watching.
 
@mikeserv what's stopping you from doing a selfie?
 
That sounds dirty.
 
1:50 PM
I mean, we had made selfanswered questions for common topics because we are tired of having the same issue just with different flavor
 
Oh, I guess, not much. Of course, I probably wouldn't have to if they weren't closed in the first place.
 
@StephaneChazelas - did you ever uncompile the charsets?
@AzkerM - that's pretty good.
 
:)
 
2:28 PM
@mikeserv I'll add an answer at some point. The question doesn't make much sense as it stands so one can only get a partial answer.
 
@StephaneChazelas meh, just write a question the way you would like so everyone can get the complete answer ;)
eager to read
this guy deserves upvotes askubuntu.com/a/472933/169736
 
3:06 PM
@StephaneChazelas - whatever the answer, I hope it doesn't involve my tsort suggestion - that takes forever...
@Braiam - wow. That's a good answer.
 
3:38 PM
@Braiam at least after the edit to correct himself that it's actually octal.
 
3:48 PM
Can we close this quickly please? Cross-posted on SO and now the SO one was migrated here so we have it twice:
0
Q: bash completion on posix mode

neoproutI would like to use an interactive posix bash shell but the autocompletion feature doesn't work. When i type the tab character it simply prints a tab. The tab completion only works when i'm on a non posix interactive shell or on a posix interactive shell with emacs input mode. I find emacs input ...

 
@terdon do we need to yell at someone in SO?
 
@terdon wham!
question: answered by the obvious Wikipedia article
 
@Gilles Heh, liking your godlike powers huh?
@Braiam Nah, he just crossposted it. The migration seems correct to me.
 
highest-scoring answer: quotes Wikipedia… and added some completely bogus stuff
next-highest scoring answer: almost, but not entirely wrong or irrelevant
third answer: actually correct! not perfect because the source isn't particularly interesting
and more answers that don't add anything to what was already posted, if they answer the question at all
 
@Gilles I remember downvoted the question...
apparently I didn't
 
3:59 PM
And it was tweeted...
 
@terdon Nice to know their twitter bot works as well as ours.
 
Yup.
 
4:22 PM
Umm...
+1 for lmv() function. I didn't know that :) — Hamed Kamrava 1 min ago
 
4:55 PM
Howdy.
 
 
3 hours later…
7:50 PM
Strange:
1
Q: -bash: /etc/bash.bashrc: Permission denied I have no name

Canadian LukeI have a Debian Wheezy server running, and a test-backup was just run - However, it went the other way! I cleaned it up the best I could, but I'm getting a VERY annoying error now. Root login is disabled via SSH. The user has to log in as a regular user, then execute su to get Root access. When ...

 
Is it ok if I remove a hyperlink from question that downloads a file to the machine?
 
@terdon I'd bet you $10 /etc/nsswitch.conf is screwed up somehow
perms, or corrupt
 
In the CUPS printer question, the second hyperlink, db.tt/N0NkGPag is not opening but rather downloading a .odt file to the local machine.
 
@Patrick I'm in a chat room with the OP, I'll pass it along. Thanks.
 
@terdon I'd bet on SELinux or similar
Security module blocking read of /etc would explain all of that.
 
7:53 PM
Passed along as well.
 
@terdon also, could be missing +x on /etc or /
 
Hey guys, thanks for helping @terdon to help me
 
This is the question in which I removed the second hyperlink. unix.stackexchange.com/questions/132080/error-printing-in-mint
 
drwxr-s--- 90 0 100 4.0K May 27 18:06 etc
 
@CanadianLuke ah yeah, that'd be wrong
 
7:55 PM
s?
 
@derobert Nice call
 
Wait, I never installed SELinux though...
 
@CanadianLuke chmod 0755 /etc ought to fix it
 
@Ramesh Yes, I'd seen that. I was in the middle of including it in the body of the question when I saw that it was huge. It is very important though since it shows the "cups not running" or whatever message.
@CanadianLuke Well, something checked the permissions, there's no call for that s there.
 
@CanadianLuke of course, if that does fix it, you get to figure out how permissions on /etc were set funny, and if anything else is broken too
 
7:57 PM
@derobert The chmod did it. Thanks!
 
@terdon, but the file is getting downloaded to the machine. Is that fine?
 
@Ramesh Well, it's ugly but it should be safe, it's just an odt file. Never mind, I'll just put it in a pastebin.
 
@terdon, sure thanks. :)
 
@derobert Do you want to post that as an answer to the question, and get some SU rep?
 
@CanadianLuke Sure, posting one now
 
8:00 PM
Thanks
 
@CanadianLuke posted
 
And marked!
 
Is this a good way to find files greater than a particular size? find . -size +1G
 
@Ramesh sure, keep in mind that is the logical size. E.g., it'll include holes in sparse files.
 
8:16 PM
@Ramesh you can get actual blocks used with find ././ -exec ls -ds \{\} + the block count will be first on the line containing a '././'
But you'll need the {} + I just added.
 
@Ramesh Also, if you're trying to find where all your disk space went, I suggest du and xdiskusage. Note that you can run xdiskusage locally on remote du output.
 
!!! ^^^
 
@mikeserv ?
 
@derobert Just seconded your statement.
 
Ah. Ok. Wasn't sure what that meant, other than you were excited.
 
8:20 PM
For !!! emphasis.
@derobert - did you ever try that weird eval ... seq thing?
 
Yes. I got @mikeserv is excited (!!!) about the above line (^^^).
@mikeserv No, never tried it...
I saw it, and your entry to the obfuscated shell code contest should definitely be accepted :-/
 
@mikeserv, did you check stephane's solution for this?unix.stackexchange.com/questions/132252/…
cut -d '"' -f4. So simple :)
 
Oh, well, its advantage was that it was basically a single shell op for every ... I dunno ... $ARGMAX file list.
@Ramesh - I don't see stephane there...
 
@mikeserv He left a comment
 
@mikeserv, In the comments under the question.
 
8:25 PM
@Ramesh BTW: if you right-click on the comment timestamp, you can copy the link location. Which you can then paste into chat:
cut -d '"' -f4? — Stephane Chazelas 23 mins ago
... and it oneboxes. (And don't accidentally click on his name, else you'll get a link to his profile instead...)
 
Yeah. I do. That's very good - but still gets the 'src' types. Which I guess is ok, since op accepted Ramesh's, but I dunno.
 
@derobert, checking checking :) unix.stackexchange.com/questions/132252/…
 
@Ramesh it needs to be alone, without anything else
I think you can probably have a :dddddddd in front of it for it to be a reply. But that's it.
Looks like you're trying to extract parts of an XML document. Try an XML tool such as xmlstarlet or xmllint. stackoverflow.com/questions/91791/…Mikel 42 mins ago
 
Hi guys.
 
... the only right answer there :-P
 
8:28 PM
@derobert, yeah. XML parsing is to be done using tools to make sure that the data is correct :)
 
I don't mind "I have this single machine-generated file I need to grab some data out of, time for a regex". That's fine—you get the data you want, and you're done. But if you're going to keep using that on future files, its wrong. XML allows a lot of changes which are—as far as XML is concerned—the same data, but will break your regex
 
This is true. The biggest problem with XML/HTML is that, at their source, there's a person.
 
When I was trying to extract HTML source, I got this as the answer when I asked a question on how to extract HTML pages.
4429
A: RegEx match open tags except XHTML self-contained tags

bobinceYou can't parse [X]HTML with regex. Because HTML can't be parsed by regex. Regex is not a tool that can be used to correctly parse HTML. As I have answered in HTML-and-regex questions here so many times before, the use of regex will not allow you to consume HTML. Regular expressions are a tool th...

 
Yeah, you weren't the first.
 
I included stephane's solution in the accepted answer. I think that is the best solution for this question.
 
8:36 PM
Agreed.
 
@mikeserv Not always with XML. A lot of times, its entirely machines talking to machines, and both generating and parsing XML with pre-existing libraries.
Which is a silly use of XML, really. XML isn't really a good machine-machine language.
But it sucks as a human-machine language as well. And even more as a human-human language.
 
I found w3m useful in this context. I also had to extract huge data from websites and do lots of text processing. I used cURL to do it. After that I used w3m to remove all HTML tags and then I was able to do the text processing more consistently in the data.
 
slm
@derobert - dug in further and the slow disk wasn't my RAID issue. Looking for other ideas on how to proceed in debugging our issue further. Also any thoughts on hammering the RAID with some software to verify it's in working order.
 
This is how I downloaded the source pages and did my work using bash script.
curl ""unix.stackexchange.com"" -s | w3m -dump -T text/html > foo.txt
 
@slm Odd. What does iostat show?
Also, I forget if this is raid5/6 or 0/1/10?
 
slm
8:46 PM
$ iostat -kx
Linux 2.6.38 (tank) 	05/27/2014 	_x86_64_	(8 CPU)

avg-cpu:  %user   %nice %system %iowait  %steal   %idle
           0.75    0.00    1.82    2.31    0.00   95.12

Device:         rrqm/s   wrqm/s     r/s     w/s    rkB/s    wkB/s avgrq-sz avgqu-sz   await  svctm  %util
sdaaa            30.26     0.00    0.27    0.00    15.59     0.00   115.37     0.00    8.59   2.59   0.07
sdaab             0.00     0.00    0.00    0.00     0.00     0.00     4.66     0.00    0.98   0.84   0.00
sdq              84.90   105.08    1.40    1.06   344.21   424.55   625.88     0.42  171.46   2.76   0.68
the sdq disk is not in the RAID, that's an externally attached eSATA drive.
 
@slm so, do I remember correctly that the issue was it randomly having pauses? Or was that someone else?
 
slm
it would pause and periodically throw errors out when ppl were using robocopy to copy files from Windows systems to the NAS
 
@slm oh? What type of errors?
 
slm
I've been going through the SMART output on the off chance it would reveal anything useful
 
if you're getting errors, that sounds like a promising place to start.
Other than that, what if you just copy a bunch of files around locally, not over Samba/etc.
if its raid5/6 there is the stripe cache size you can try tuning... but that shouldn't lead to errors, just slowness.
 
8:59 PM
Does anyone know how a wireless printer like amazon.com/Brother-Printer-MFC7860DW-Wireless-Monochrome/dp/… works with a computer?
does it just broadcast a wireless signal? how does my computer pick it up?
 
00:00 - 21:0021:00 - 00:00

« first day (1326 days earlier)      last day (3622 days later) »