Skip to main content

New answers tagged

2 votes
Accepted

How do I enable root account = set root password in Synology DSM 7.2?

So, I just went through most of the search results, most claiming it is no longer possible, however it is still possible in 7.2 and maybe in later versions of DSM. Try this, just change the the ...
Vlastimil Burián's user avatar
0 votes

What script could allow regular users to use network namespaces?

I use user ALL=(root) NOPASSWD: /usr/bin/ip netns exec * sudo -u user *, !/usr/bin/ip netns exec * * sudo -u user * In /etc/sudoers.d/netns This allows user to run ip netns exec $NAMESPACE sudo -u $...
Hashbrown's user avatar
  • 214
0 votes

Cannot reset root password via grub

The "authentication token manipulation error" you're encountering typically occurs when the root filesystem is mounted as read-only. This is a common issue when attempting to reset passwords ...
Rushikesh Sakharle's user avatar
1 vote

`sudo which` command not finding executable that exists in regular user PATH

See the section Command Environment in man sudoers. By default, env_reset is enabled and PATH is reset to a secure value - either secure_path value or a compiled-in value if the secure_path is not set....
AlexD's user avatar
  • 1,613
4 votes
Accepted

`sudo which` command not finding executable that exists in regular user PATH

As root, there are more things that should be in your path. (like /sbin and /usr/sbin) As root, there are things that should not be in your path. (like .) Therefore, the path is normally reset. The ...
David G.'s user avatar
  • 3,621
0 votes

how does switch_root command make /sbin/init in the new filesystem pid 1 process?

The execv() function (and every other function in the "exec" family) is defined as replacing the current process with the new one. Roughly what happens when a program calls the function is: ...
Mark's user avatar
  • 4,705

Top 50 recent answers are included