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'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".
@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?
@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.
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.
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 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 ;-)"
@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 :-).
@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
@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
I'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...
RHEL 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...
usermod 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 :)
As 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?
How 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...
## 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
On 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 ...
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)
@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.
@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.
I 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...