Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Hot answers tagged

8

Probably the shell is changing its effective user ID back to the real user ID as part of its startup for some reason or another. You could verify this by adding: /* needs _GNU_SOURCE; non-Linux users see setregid/setreuid instead */ uid_t euid = geteuid(), egid = getegid(); setresgid(egid, egid, egid); setresuid(euid, euid, euid); before your system(). (...


8

What changed is that /bin/sh either became bash or stayed dash which got an additional flag -p mimicking bash's behaviour. Bash requires the -p flag to not drop setuid privilege as explained in its man page: If the shell is started with the effective user (group) id not equal to the real user (group) id, and the -p option is not supplied, no ...


6

Thanks to Jesse_b for finding this Stack Overflow Q/A: TL;DR WSL Dynamically generates a fake timezone info file at /usr/share/zoneinfo/Msft/localtime that in hard linked to /etc/localtime. The Msft file uses the made up names DST or STD, and they stand for no specific timezone. What is actually going on is WSL attempts to match your Windows ...


3

This happens when /tmp is mounted with the noexec flag, which is probably the case on your system — see the output of mount. This prevents any executable stored under /tmp from running, regardless of the file’s permissions. The idea behind mounting /tmp, and other world-writable directories, with this setting is to make it harder to drop binaries on your ...


3

If you remove APT using sudo apt remove apt, following packages are affected in a standard installation (at least in bionic (18.04)): apt apt-utils ubuntu-minimal ubuntu-release-upgrader-gtk ubuntu-desktop update-manager update-notifier update-notifier-common To reinstall APT: Download the .deb file of APT. wget http://mirrors.edge.kernel.org/ubuntu/pool/...


3

Classic Solution: For debian based systems like ubuntu commands based on the network state can be set as a rule under /etc/network/interfaces; this answer demonstrate the case of two interface eth0 and wlan0 With sudo, open /etc/network/interfaces with your text editor (that file contain rules and settings for your network interfaces also note that network-...


2

There is something special with time : it exists as a shell built-in AND as a binary : type time returns : time is a shell keyword type /usr/bin/time returns : /usr/bin/time is /usr/bin/time Then : time -f "%e[s]" sleep 3 bash: -f: command not found real 0m0.003s user 0m0.003s sys 0m0.000s whereas : /usr/bin/time -f "%e[s]" sleep 3 3.00[s]


2

I think you've made a mistake in where you write the image to. The disk image contains a partition table of it's own so you need to write the image to the disk, not to a partition. The partition is mounted as disk2s2 so you do need to diskutil unmount /dev/disk2s2 that. You should ensure that no other partitions on the USB drive are mounted as well. Use ...


1

No Performing network address translation (NAT) is conceptually very different from using a HTTP proxy server. There is no way to tell the remote's private local IPv4 address. It would defeat the very purpose of NAT (that is aggregating a network into a singl host). On a side note: FTP reveals the remote's address (and it lead to problems with NATed ...


1

What does splash represent here? I know init is the first process that runs when we start up the computer. But what is splash ? What does it do ? First of all, you are runnning ubuntu which uses systemd, which allows you to display a splash screen during boot, this is why it has the splash argument. See the splash.c source code. [EDIT] Your computer is ...


1

That ISO ("live-server") uses Subiquity, as the Release Notes state: Server installer The next generation Subiquity server installer, brings the comfortable live session and speedy install of Ubuntu Desktop to server users at last. The source code is also linked to by the Release Notes: https://github.com/CanonicalLtd/subiquity


1

I just added in Codeblocks: terminator -T $TITLE -x´ and Terminator seems to work fine. Just use -x instead of -e


1

Did you try copying them from root's directory to user's directory? Generally root's mail is stored in /var/mail First, check the location where the root's mail is stored by sudo env | grep MAIL It is generally /var/mail/root or /var/spool/mail/root Second, check the user's mail location by: env | grep MAIL It is also should be: /var/mail/$USER or /var/...


1

The easiest and most convenient way to do that is to use the new apt interface: apt list --installed | grep installed,local The first command lists you all installed packages on the system. After each package there is a tag, which is [installed,local] if the package was installed locally from a .deb. From the comments: aptitude search ~o This command ...


1

From the data we've been given, I'm assuming the following: You did not take a 10h system backup before you started You have a weak internet connection and the ssh session might be lost So under the current situation, the best thing to do is: start a ping to the host so the connection is kept alive Wait for 10 hours Depending on the outcome, you just: ...


Only top voted, non community-wiki answers of a minimum length are eligible