Reputation
1,621
Top tag
Next privilege 2,000 Rep.
Edit questions and answers
Badges
4 10
Newest
 Yearling
Impact
~137k people reached

  • 0 posts edited
  • 0 helpful flags
  • 55 votes cast
Apr
26
comment XFS or EXT4 which is better
It depends what you are doing with it (sequential or random reads or writes, creating or deleting files) and what its sitting on top of (raw partitions, software RAID, hardware RAID, LVM). Any answers you get suggesting one or the other are not based on any facts since you've provided no information about the context.
Apr
25
comment how to do formatting of a file in unix
Since the file appears to be a mix of different formatting conventions, it would be helpful if you stated what the format was (although the example is useful too). Further writing a script to rearrange one file is a massive overkill - do you have multiple input files you want to merge?
Feb
22
comment awk FS with back slashes
@cuonglm: quite aware of that, just wondering why Gregg wants to parse device nodes and pipes.
Feb
22
comment Permission denied after changing password (password is correct)
1) yes 2) yes, I can su $USER as root 3) exactly as expected (all groups valid) 4) ~ is drwxr-x---, .ssh is drwx------ 5) create yes, login no. 6) yes 7) I don't know what you mean. Can I direct your attention to the log entry above which answers most of these questions already.
Feb
22
comment Permission denied after changing password (password is correct)
me too. Which is why I was so careful to check that.
Feb
22
comment awk FS with back slashes
Do you really want -not -type d rather than -type f ?
Feb
20
comment Permission denied after changing password (password is correct)
No, the password does not contain anything other than 7 bit) ASCII characters
Feb
20
comment Permission denied after changing password (password is correct)
Thanks Prem but accounts are stored locally, and yes I can exit from the sudo shell. I've finished for the day now. I didn't see anything unusual with verbose ssh.
Feb
20
comment Permission denied after changing password (password is correct)
rsyslogd is running, I've not changed anything in sshd_config, but it may have been changed after installation. Certainly the PAM files have been modified.
Feb
20
comment Permission denied after changing password (password is correct)
SyslogFacility is AUTHPRIV, rsyslog.conf is set to send auth.* to /var/log/messages, but nothing is getting added to this file (and I am attempting to access the right box as per the audit.log entries above)
Feb
20
comment Permission denied after changing password (password is correct)
Not on this installation.
Dec
29
comment Access folder created in windows
Or share the folder from mswindows and mount it as cifs on the Linux box.
Nov
6
comment Parallel device redirection fails in FreeRDP
Known issue: github.com/FreeRDP/FreeRDP/issues/2289
Nov
1
comment bash iterate file list, except when empty
@cuonglm: you were first to point out I should be using nullglob (getting the scriptname back was a result of the glob being expanded before the ls command was executed, hence 'ls *.zip' became simply 'ls'). Can you reporst your answer as a coment and I'll tick it off.
Oct
30
comment bash iterate file list, except when empty
Which recurses through subdirectories, and I want to invoke a bash function (not script) for the matches.
Oct
30
comment bash iterate file list, except when empty
@cuolnglm: spookily this results in ls returning the name of the executing script rather than an empty list on this RHEL5 box (bash 3.2.25) if I do FILES=ls *.zip; for fname in "${FILES}"... but it does work as expected with for fname in *.zip ; do....
Oct
8
comment tar with relative paths
No - look at the original question - the last argument is an absolute path.
Aug
28
comment opensshd / openssh - allow EITHER keypair or password
I'd set the file permissions but not the directory - changing this, it now works.
Aug
16
comment Awkward awk exit code
awk -f foo ; eco $? gives 1 as expected.
Aug
14
comment Awkward awk exit code
Yes, bit odd when the man page says....env [OPTION]... [-] [NAME=VALUE]... [COMMAND [ARG]...]