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(). (...
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 ...
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 ...
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 ...
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.
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-...
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
time -f "%e[s]" sleep 3
bash: -f: command not found
/usr/bin/time -f "%e[s]" sleep 3
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 ...
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 ...
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
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 ...
That ISO ("live-server") uses Subiquity, as the Release Notes state:
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
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/...
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 ...
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: