« first day (2942 days earlier)      last day (2013 days later) » 

1:04 AM
after asking this question I found out that BSD and Linux commands are more different then I would have expected
is there a guide or book explaining this unix.stackexchange.com/questions/471141/…
 
 
8 hours later…
9:13 AM
@William You could start with unix.stackexchange.com/q/104714/21109 which has some links to further information
 
9:38 AM
@AaronHall creepy
 
 
1 hour later…
10:44 AM
Anyone with a high rep want a thankless task? There's a Q that I found really interesting. Right now it should probably be closed - the problem has been resolved more forcefully, and one person tried to reproduce it but could not. Unfortunately 1) that same person was a little fighty and then of course wanted a big fight when I attempted to push back 2) after that last comment, the OP decided to just delete the entire Q.
I would prefer the question to stay up (but closed) because it's interesting, and maybe someone else will have the same problem. I am interesting in advice, but I guess the only people who could advise me are those with enough rep to view a deleted question.
*I am interested in advice.
 
you should ping terdon or any other mod, but I think they can't reopen the question if the user deleted it.
 
I've actually got a "vote to undelete" link for the question, don't ask me what happens if I click it :-).
@terdon / mods: I was interested in the Q unix.stackexchange.com/questions/477818/…, but it was self-deleted. I would prefer it to be undeleted, though I suspect it should be closed as "not currently able to reproduce". Is that reasonable? It also has a comment thread with someone who I massively offended. If you want to yell at me and purge the comments first, I think it would still need to keep the OP comment "allocated the last sector as a workaround".
 
11:07 AM
 
@sourcejedi You are talking about the question titled "loop device not matching file size". I could cast an undelete vote. Would you like me to?
 
@terdon Gosh, the swag coffee cup is ugly ;-)
 
@PrabhjotSingh More precise, vote to undelete.
It's not been closed, it has been deleted. Assuming we are talking about the same question.
 
@FaheemMitha Thanks... I don't know. I think maybe the OP self-deleted because we were fighting in the comments. I feel it would be nicer to the OP, to make things clear by cleaning that up first. It looks like I can still flag the comment, even though the Q is deleted. I could flag the comment and then vote to undelete. Any objections?
 
11:42 AM
@FaheemMitha Yes, vote to undelete. And Thanks.
 
@sourcejedi What use to undelete it if it got no answers? We can cast a vote....
 
@sourcejedi Whatever you think best. So I should not vote to undelete? I agree that it shouldn't be undeleted if the poster objects to the undeletion.
 
@sourcejedi my advice, if you want to undelete it ,ping terdon or slm to delete the comments
 
@RuiFRibeiro It seems to me that it would be polite, if not desirable, to get the poster's consent first. Seeing as he could delete it again, for one thing.
 
@FaheemMitha It makes sense.
 
11:55 AM
@RuiFRibeiro What does?
 
@FaheemMitha Context...you make sense, asking for permission makes sense.
 
@RuiFRibeiro Ah - you mean getting consent from the poster? Ok.
Actually, the comments seem pretty mild. Is it possible the problem went away on its own?
afuna did not indicate, one way or the other.
 
@sourcejedi Yeah, sounds like the OP sorted it out so it would b off topic as "non reproducible". And never mind about the comments, you were fine :)
@Kusalananda Yeah, it ain't pretty. It's big though, that's something :P
 
True that.
 
Hi @terdon.
 
12:03 PM
Thanks everyone! I have voted to undelete. It looks like U.S.E won't let me click to close at the same time - we have to wait before it is undeleted, before it can be closed.
 
@sourcejedi U.S.E ?
 
@FaheemMitha UnixStackEchange
 
Oh, U&L SE.
@sourcejedi That's an unusual acronym.
We usually just say U&L here.
 
Haha, I can remember U&L in future then :-). I think I mis-read the last comment - I thought the last part was explicitly asking me to reply, but maybe it is actually saying it hopes the OP would be able to provide more information.
 
@sourcejedi What last part?
 
12:08 PM
"@sourcejedi why are you accusing me of incivility? what are you up to? Do not try to falsely suggest that I was rude in a comment I then deleted. As to OP's problem, I wasn't able to reproduce it in any way yet, but I'm waiting for your answer ;-)"
@FaheemMitha the part "I'm waiting for your answer ;-)"
 
@sourcejedi I think he was talking to the poster.
It's poorly expressed, but that's hardly unusual.
Bear in mind that many of the posters are not native English speakers.
 
@FaheemMitha sure! I am a native English speaker and I still manage to write things that are really poorly expressed :)
 
@sourcejedi Yes, that happens to everyone.
@sourcejedi If you would like me to vote to undelete, let me know.
It makes no difference to me, one way or the other.
 
@FaheemMitha I have voted to undelete now, I guess there's a review queue but if anyone wants to help out and add another vote that would be great :-).
 
@sourcejedi It's open now. I just voted, and I guess someone else did too.
Were you planning to add an answer?
 
12:16 PM
No, I was planning to VTC once it is undeleted.
Sometimes I manage to write things that are hard to understand just because I seem to want strange things that no-one else wants :-).
 
@FaheemMitha I voted.
 
@sourcejedi That seems like an unnecessary amount of trouble to go through.
@RuiFRibeiro ok
@sourcejedi Are you American?
 
@FaheemMitha I am British.
 
@FaheemMitha Hi (sorry, just saw that)
 
@sourcejedi Ok. Are you in the UK?
@terdon Hi. Currently in London?
 
12:23 PM
@FaheemMitha Yes :-).
 
@sourcejedi Ah. I lived there briefly once. It's been a long time, though.
 
@FaheemMitha yep
 
@terdon How's the weather? Getting cold? I've heard English winters are getting milder.
Also bpca.org.uk/News-and-Blog/… etc. Possibly a side-effect of global warming.
 
Yeah, got cold al of a sudden this week.
 
is there a book that compares linux and bsd specifically
 
12:31 PM
@terdon Ok.
 
Got cold all of sudden here too over the weekend
 
It was cool, but nice and sunny this weekend. Went out for some walks, I was on a big family weekend in rural Wales.
We saw a tiny amount of snow, could see Snowdonia (I think) was looking very white as well.
 
@sourcejedi hello, how are you ?
 
12:58 PM
I also have this issue when I get too many things to think about... unix.stackexchange.com/questions/478431/…
 
I have a question on a user in Linux
Is username either a root user or non-root user? in terms of access privilege..
Or Do we have multi level access privilege
?
 
@overexchange The security model is to have one root user. Though I suppose one can grant arbitrary privileges via sudo.
There might be other models around too.
 
@PrabhjotSingh Hi, I am well. It still looks sunny here, I might walk to the park and back soon :-).
 
sudo is a different story.. to get root access privilege without passwd
[root@machine ~]# cat /etc/passwd
root:x:0:0:root:/root:/bin/bash
bin:x:1:1:bin:/bin:/sbin/nologin
daemon:x:2:2:daemon:/sbin:/sbin/nologin
adm:x:3:4:adm:/var/adm:/sbin/nologin
lp:x:4:7:lp:/var/spool/lpd:/sbin/nologin
sync:x:5:0:sync:/sbin:/bin/sync
shutdown:x:6:0:shutdown:/sbin:/sbin/shutdown
halt:x:7:0:halt:/sbin:/sbin/halt
then why so many usernames are created? by linux installer... if there is root or non-root scenario
 
@overexchange Users are often created so that different processes can run as those users.
 
1:13 PM
@overexchange all those other users are non-root
 
however it is possible to have multiple usernames which map to root
 
ok
how to verify that?
 
@overexchange they all have uid 0
 
1:15 PM
There are also things like SELinux and AppArmor.
 
@StephenKitt uid 0 or gid 0?
 
@overexchange uid 0
 
Is it required to map? because gid 0 will make sure the other user also get root privilege..
for example: sync:x:5:0:sync:/sbin:/bin/sync
sync with uid 5 and gid 0 has root privileges
@StephenKitt Why would I need mapping a user1 to root?
 
@overexchange no it doesn’t
@overexchange typically to start a different shell (a statically built rescue shell)
 
@StephenKitt In our environment, UNIX admin give root access to our RHEL 7.x machine for two weeks as sudoer. Without sudo root access, we cannot run our applications or restart them. So..... I planned to useradd a new user(syslog) with gid 0 and run usermod -aG wheel syslog
So in future we will sudo to this syslog without taking permission from UNIX admin to get root access to this machine
All the application binaries will remain gid 0
but uid will change to syslog's uid
 
1:26 PM
gid 0 doesn’t give root access
 
I want application binary to run as root
 
@overexchange does it need to run as root?
 
Hello !
 
@StephenKitt No it doesn't... but I have to change the ownership of /usr/lib dependents
application relies on many OS dependent libraries
/lib and /usr/lib .so libraeies
 
@overexchange like most applications
but that doesn’t involve running as root
 
1:30 PM
@StephenKitt If I create syslog:x:1234:1234::: and change owner of application binaries(only)... then application cannot load /lib and /usr/lib librariees(owned by root)
Mainly it takes less work for ownership change
and would not requrie sudo root password for future launch of application
 
@overexchange what? libraries are owned by root, yes, but they are supposed to be readable by everyone
 
you are right
# ls -l /lib/libc.so.6
lrwxrwxrwx 1 root root 12 Oct  3 10:57 /lib/libc.so.6 -> libc-2.17.so
I think you are right...
 
@overexchange that’s a link, it doesn’t mean anything
 
# ls -l /lib/libc-2.17.so
-rwxr-xr-x 1 root root 2079172 Nov 22  2017 /lib/libc-2.17.so
@StephenKitt If a file is owned by username user1 with uid say 1983 and gid as 1983, can root access these files?
for read write execute
 
1:46 PM
@overexchange ignoring SELinux & co, root can access anything
regardless of permissions
 
ok
@StephenKitt we user service & chkconfig commands to start/stop/restart our applications
and
user1 should be able to access this utilities
without any privilege issues because it has x permission to everybody
# ls -l /sbin/service
-rwxr-xr-x. 1 root root 3245 Jan  2  2018 /sbin/service
This is good
 
2:06 PM
@overexchange using service to start/stop apps requires root for other reasons
you should ask a question on the main site explaining what your requirements are
 
ok
other reasons.. like
 
Presents from greeks....skype has had bugs for two months now....
 
What do you mean @RuiFRibeiro
 
@Kiwy Skype in Linux does not run....
 
hey if any of you have done some spark and mesos, you could maybe help me with that:
0
Q: Spark Mesos dispatcher can only use on node core at the same time

KiwyI've a Mesos 1.7 cluster with two server A and B with domain name serverA.com and serverB.com. A is master and slave: Centos 7, 4 cores 6GB of RAM B is slave: Centos 7, 4 cores 8GB of RAM When running : bin/spark-shell --master mesos://zk://serverA.com:2181/mesos \ --executor-memory 3G...

@RuiFRibeiro OK, but why the greeks ?
are they responsible ?
 
@RuiFRibeiro Didin't know it has that meaning too
 
@Kiwy Ho is not what you think it is ;)
;)
 
Oh Didn't know that...
I'll do my best not to write that again, could be misleading
 
@StephenKitt Created a question on this
0
Q: How to use service to start/stop app with non-root access?

overexchangeRHEL 7.5 Currently installed an application as root in /app. As part of administration, application will start/stop using /sbin/chkconfig & /sbin/service utilities All the application binaries and their dependents are currently owned by root(uid/gid). In our environment, root access(sudo) is p...

 
2:49 PM
How to remove a user from a group in rhel 7.5? usermod does not have such options..
 
@overexchange useradd or adduser. The latter is Debian-specific, I think.
Sorry, no. userdel or deluser.
 
3:12 PM
no option...
 
@overexchange usermod -G, see the manpage
 
@StephenKitt yes I tried, does not work
 
deluser at least will remove a user from a specific group.
 
0
Q: RHEL 7.5 - How to remove user from a group?

overexchangeusermod does not have an option to remove user from a group Usage: usermod [options] LOGIN Options: -c, --comment COMMENT new value of the GECOS field -d, --home HOME_DIR new home directory for the user account -e, --expiredate EXPIRE_DATE set account expiration date to...

 
Hey there! I have 2 background processes running and I want Process 1 to terminate if Process 2 ends, and vice-versa. Either of them could end first so I guess that's where I'm stuck at. Another roadblock: I'm using Bash 4.1 so I cannot use wait -n. Any help on this would be appreciated :)
 
3:17 PM
At least it says so on the man page.
Never mind, deluser is Debian-specific. Sorry for the noise.
 
@StephenKitt How a non root sudo to another non root user without passwd?
0
Q: How a non-root user sudo to another non-root user without password?

overexchangeAs root, created a new non-root user on RHEL 7.5 appuser:x:1903:1903:appuser:/home/appuser:/bin/bash A non-root user to be able to sudo to appuser, sudo -u appuser without a password, What are the changes required on RHEL 7.5?

 
@RuiFRibeiro What kinds of bugs?
@Kiwy Trojan War reference. And quite an old one.
 
3:45 PM
@FaheemMitha The kind of bug that is breaks
;)
$ ./skypeforlinux
Server response: <?xml version="1.0" encoding="UTF-8"
Segmentation fault
@FaheemMitha rumours that it depends on systemd....
@FaheemMitha and does not handle well dbus messages/errors
@FaheemMitha Typical MS.
@FaheemMitha (not running systemD)
 
I want to modify /etc/sudoers
but -r--r----- 1 root root 1215 Jun 12 12:04 /etc/sudoers
is this customised file permissions?
How can it be read only for root user?
 
4:06 PM
@overexchange see
73
Q: How do the internals of sudo work?

strugeeHow does sudo work internally? How is it possible that it can become root without having the root password, unlike su? What syscalls, etc. are involved in the process? Is it not a gaping security hole in Linux (e.g. why couldn't I compile a heavily-patched sudo that just did whatever regular sudo...

 
4:17 PM
@StephenKitt setud bit? for writing?
 
@overexchange for reading
 
@StephenKitt So... we always run sudo program as root
but.. am still unclear.. how this is related to this query
?
answer in that query recommends to modify /etc/sudoers file
 
@overexchange it explains how sudo can read /etc/sudoers even though it’s only readable by root
 
ok
I understand that part...
But as root, how do I modify vi /etc/sudoers file which is readable only
I need to add an entry in this file
 
@overexchange see
3 hours ago, by Stephen Kitt
@overexchange ignoring SELinux & co, root can access anything
 
4:26 PM
hmmm
your point looks vague to me by seeing this
# ls -l /etc/sudoers
-r--r----- 1 root root 1215 Jun 12 12:04 /etc/sudoers
@StephenKitt your point nullifies all these permission rules
 
:47393568 it’s not my point, but yes, like I mentioned previously, permissions don’t apply to root
 
@StephenKitt BTW... am unable to edit the file
how do you see that?
E45 error
 
the error tells you how to override it
 
but the comment at the top of the file tells you how you should edit it
 
4:33 PM
# Command Aliases
Cmnd_Alias NRPE = /usr/RaidMan/arcconf, /etc/init.d/nrpe, /usr/bin/mailq, /usr/sbin/lshw, /usr/bin/ipmitool, /opt/nagios/libexec/*
this is the comment
 
OK, that means someone else has removed the comment I’m referring to
 
hmmm :wq! worked
 
## Sudoers allows particular users to run various commands as
## the root user, without needing the root password.
##
## Examples are provided at the bottom of the file for collections
## of related commands, which can then be delegated out to particular
## users or groups.
##
## This file must be edited with the 'visudo' command.
## This file must be edited with the 'visudo' command.
@overexchange yes, that’s what "add ! to override" in the error message means
 
@StephenKitt Difference between sudo -u non-root-user and sudo su - non-root-user
both should work same
 
@overexchange no
there are questions on the site which already address this
 
4:40 PM
sudo su -u non-root-user is root access breach
where as sudo -u non-root-user is not root access breach
 
@StephenKitt well must be is a bit over dramatized, but yes th e visudo command has at least a build in error checker
 
@StephenKitt sudo -su non-root-user worked for me
 
@Videonauth it’s useful to avoid locking yourself out of root if your root user doesn’t have a password
 
true that
 
4:56 PM
0
Q: sudo -su vs sudo su -

overexchangeOn RHEL 7.5, I created a non-root user and would like to switch from one non-root-user to another non-root-user, without password. First tried, sudo -u user1, command syntax error then tried, sudo su - user1, asks for passwd, 1) Why it asks for password? 2) How sudo -su user1 different from ...

 
 
2 hours later…
6:53 PM
Hi everyone
I have a problem with Ubuntu WSL on windows 10, I've created an alias in .bashrc for notepad++ and now when I np <relative_address_to_file>, it opens up the notepad++, but goes into a wrong directory (C:/WINDOWS/system32) and searches for that file and then gives error that the file doesn't exist (e.g. I'm in home directory and I have "ls"ed it and .bashrc exists, now from there I do this: np .bashrc)
 
7:33 PM
@Narnia It goes to the default notepad++ directory from the Windows point of view..WSL and Windows might also different opinions were files are from their point of view. ..you are in a Unix group asking for Windows internals questions, which might be off-topic here.
 
@RuiFRibeiro Sorry I realized that after I found the AskUbuntu group. Thanks.
 
7:59 PM
@Narnia If they don't know either, you could try Super User
We're willing to help with WSL when we can ... but since we're all Unix folks, we really don't know much about how it interacts with normal Windows stuff.
(personally, I'd guess there is some utility to convert a WSL path to a Windows one, and then you could use a shell function instead of an alias to handle that)
np() { notepad++.exe "$(wsl-to-windows-path "$1")"; } ... or however you start notepad++ from WSL, if it's not just by running notepad++.exe.
14
Q: Convert Windows path for Windows Ubuntu Bash

laggingreflexI have a windows batch script that uses Windows Ubuntu Bash. It receives a full Windows path as an argument and then passes that path to a command in Ubuntu Bash. @echo off bash -lic 'ffmpeg -i "%1" output.avi' Here "%1" is the full Windows path, like "C:\some path\file.avi" The command give...

 
8:22 PM
@derobert scary lol
 

« first day (2942 days earlier)      last day (2013 days later) »