« first day (2874 days earlier)      last day (2082 days later) » 

1:03 AM
1
A: Changing group ownership of files - User management

PankiSimply create a new user and a new group: sudo adduser foo Then, change the group of the file: sudo chgrp foo /app/syslog-ng/etc/syslog-ng.conf And add the write permission: sudo chmod 664 /app/syslog-ng/etc/syslog-ng.conf Executing /app/syslog-ng/sbin/syslog-ng should, according to the ...

On this answer, what does it take for ldap user to run these commands given in answer... does it require to add an entry in sudoers file?
@Kusalananda I did not get why sudo is used in the answer? Generally sysadmin(root) should run useradd commands. Isn't it?
 
 
6 hours later…
7:32 AM
@overexchange I would advise using more your head and relying less on people doing the heavy thinking for you. It will be so much harder to learn things if you keep doing it as you have been doing. Usually the learning curve is a bit steep, but as soon you are higher up in the curve, the perspective will change.
 
8:11 AM
Question to those who've used Git Bash for windows: I'm trying to make a symbolic link to my desktop. When navigated to the desktop, if I create a file it shows going through on the command line, but it does not actually create a file. It does create an instanced version of said desktop
I would think it would have to do with my link not being correct, however if I create a file on my actual desktop it does show up in that instanced version too
 
@MaartenWachters on Windows?
 
On windows 10, yes
 
@MaartenWachters Um. I think you're in the wrong room then.
 
I'm using GNU
 
?
 
8:13 AM
GNU Bash for windows
 
GNU bash or git bash?
How do you create the link?
 
ln -s /C/Users/... /Desktop
 
Why /Desktop? Isn't the Desktop somewhere in /C/Users/...?
And what's an "instanced version"?
 
I'm an idiot
I flipped the source and target, had little sleep
Thanks Terdon
I can't edit it myself but can you remove chat.stackexchange.com/transcript/message/46341364#46341364
As I'm not sure an FBomb is allowed here
 
@MaartenWachters WHy not? You should still be able to edit
Hover over the message and click on the little arrow that appears. Isn't there an edit link?
You can edit for the first few minutes after posting
Anyway, don't worry about it.
Fixed :)
 
8:46 AM
I'm not sure why not Terdon, but I didn't have an edit or delete option like I do other chat exchanges
Perhaps because I've not gotten karma on unix.stackexchange?
 
8:57 AM
@MaartenWachters No, chat rep is global. You probably missed the edit timelimit.
 
 
1 hour later…
10:26 AM
What do you think of the "new user" box? I adblocked then....too much distraction.
 
@RuiFRibeiro It's a good reminder. I don't mind it.
 
10:41 AM
@Kusalananda Like anything that is always there, once the novelty wears off...I am a bit demanding with my web user experience, I often adblock elements of pages pretty much everywhere.
 
11:20 AM
Would you guys mind if I ask a short question, that I don't think is worth of a full question on the site? (Should it be more than a tiny oversight or similar, then I'll naturally turn it into a site question)
The dpkg-query command has the nice -f option
And among the avaliable fields are the fields Filename, Size, MD5sum, but they are empty
Am I just using the command incorrectly, or what's up with that?
 
12:08 PM
@BrainStone How are you using it?
 
12:43 PM
dpkg-query -M -f '"location":"${Filename}","md5":"${MD5sum}","size":"${Size}"'
@terdon
 
OS?
 
Debian
 
But no, this sounds like it really would be better on the site. Both because that's where questions belong and because this chat isn't very active. You'll get way more eyballs on the site
 
Alright
 
I don't have access to a Debian machine at the moment (I use Arch) but I tried on an Ubuntu server and it complained about dpkg-query: error: unknown option -M
 
12:45 PM
my bad
It's -W
 
Hang on.
What is "${Filename}" supposed to be?
It is in double quotes, so it will be expanded by the shell as a variable before launching dpkg-query
 
It's all in single quotes
 
Ah, but the whole thing is single quoted, I see. Again, that would have been easier to spot in the main site ;P
 
Yeah. Working on it
Actually have two separate questions now xD
0
Q: dpkg-query placeholders "Filename", "MD5sum" and "Size" are always empty

BrainStoneI'm currently trying to get some info about the installed pakages und systems that use dpkg. So I tried to use dpkg-query. Most placeholders work fine and I get what I need, however I noticed that the placeholders Filename, MD5sum and Size are always empty. Simple command to see the issue: dpkg...

Any idea which tags I could use too?
 
@BrainStone I just added package-management and an upvote
 
1:01 PM
Thanks
 
@RuiFRibeiro I had been thru this article. linuxacademy.com/howtoguides/posts/show/topic/…
as recommended by contributor..
I think I need learning more than that because an LDAP user sudo's to this local user..
I found some steps here..
But this is for ubuntu
 
1:37 PM
@StephenKitt I hope you don't mind the tag
I think it would be better to not have that conversation in the comments
 
@BrainStone indeed
 
Anyways, I'm trying to create a JSON file of the installed software
And I was hoping I could get it to work with a single command
 
What is the difference between su - anotheruser vs sudo su - anotheruser?
 
@BrainStone see, that’s what I think you should explain in a third question
 
I should note that I need a portable solution. Aka I only have sh and the very basic utils available, as that script is designed to be run on as many different systems as possible (the user will know about that. Not spyware but monitoring)
 
1:41 PM
@BrainStone if you’re interested in the installed software, why do you want the package filename, checksum and size?
@BrainStone OK so something like
wouldn’t do
 
@StephenKitt trying to get as much info as possible
I sadly need a sh solution
 
@BrainStone I’ll say it again: ask a question
 
@overexchange Read the question I posted for you yesterday.
Summary: forget "sudo su" it's inelegant and pointless.
in Ask Ubuntu General Room, Jul 11 '16 at 18:10, by terdon
Every time you run sudo su on an Ubuntu system, a kitten is brutally disemboweled with a blunt asparagus.
s/Ubuntu/Linux/
 
1:57 PM
@terdon poor kitten, continually disemboweled
 
Every. Effin. Day!
 
@StephenKitt I hope that question makes sense ;)
0
Q: Create a JSON file of all installed dpkg software

BrainStoneI'm trying to collect all packages installed through dpkg in a JSON file. I tried this script: echo [ > installed_packages.json dpkg-query -W -f '{"name":"${binary:Package}","version":"${Version}","short_description":"${binary:Summary}","description":"${Description}","author":"${Maintainer}","l...

 
@BrainStone it does, thanks
 
@terdon First I need to open dictionary to understand your English
Summary is cool
 
70
Q: Is there ever a good reason to run sudo su?

terdonTo launch a root shell on machines where the root account is disabled, you can run one of: sudo -i : run an interactive login shell (reads /root/.bashrc and /root/.profile) sudo -s : run a non-login interactive shell (reads /root/.bashrc) In the Ubuntu world, I very often see sudo su suggeste...

 
2:12 PM
Thanks for your help Stephen!
 
 
1 hour later…
3:15 PM
@terdon I doubt a blunt asparagus would do it. You'd need a nice sharp one.
 
@FaheemMitha that’s what’s “funny” about the quip: you can disembowel a kitten with any tool eventually (basically you end up using your hands), it’s just horrific for the kitten
 
@StephenKitt Dissembowel it with Kali hands.
 
How about sudo su -c "sudo -i"?
xD
 
3:41 PM
@overexchange The user rightly uses sudo since they assume that you are not using an interactive root shell. Working at an interactive root shell is not something that you would like to do for several reasons, for example, if you forgot to exit the shell, a coworker or somebody else may access the session as root, and also because it's easy to make mistakes (everyone makes them) and mistakes made as root are obviously more dangerous than mistakes made by an unprivileged user.
 
4:16 PM
@StephenKitt I hadn't actually given it much thought.
And hi, folks.
 
4:42 PM
anyone know why this isn't working? awk -v uuid="$instance_uuid" '$1 == "zones/uuid"'
if I put the actual string in there instead of using a variable it works
 
@Jesse_b you’re not referring to the variable
awk -v uuid="$instance_uuid" '$1 == "zones/" uuid'
note the quotes
 
ah
Thanks @StephenKitt!
 
 
4 hours later…
8:40 PM
Evil thought of thay...starting creating a MySQL admin user called Administrator ....maybe some customers start annoying the Windows team if MySQL links to AD
 
Where's the "New Contributor" indicator on unix.stackexchange.com/q/464237/135943 ? Is it not live on U&L?
Oh, I see. That's not a "brand new user," just a "new user."
 
 
1 hour later…
10:15 PM
anyone around?
is there a feasible way to get page down to work both in vi and when I have scrollable text?
in terminal
 
10:33 PM
@William This would probably be possible in vim, if one's able to rebind the page up/down to work as ctrl+u/d... I can't unfortunately test anything right now.
 
10:44 PM
hmm interesing
can you give me a hint of what this might entail?
just curious
I think it is interesting there is not smart page down option
 

« first day (2874 days earlier)      last day (2082 days later) »