Reputation
703
Top tag
Next privilege 1,000 Rep.
See votes, expandable usercard
Badges
3 7
Newest
 Yearling
Impact
~53k people reached

Feb
4
comment How do I allow privileged commands to fail but respond?
@umeboshi Interesting... (I'm normally an Arch user, where someone decided it is a good idea to merge /bin, /usr/bin, /sbin and /usr/sbin...) (Semi-related: Solaris have /bin as a link to /usr/bin, but it also have hundereds of /usr/*/{s,}bin directories) The annoying part is that several /sbin utilities are quite functional for non-root users. (And packagers mainly control where things go, likely within a policy though)
Feb
4
comment How do I tell what version of Gentoo & Linux is running?
For just distribution checking lsb_release -i works quite well, but that include "ensure that lsb_release is installed" in the instructions... This user seem to have asked about the kernel and Gentoo version, rather than identifying the distribution. (Although "distro version #" isn't the clearest phrashing)
Feb
4
comment How do I allow privileged commands to fail but respond?
This setting in /etc/sudoers likely did it on my test system Defaults secure_path = /sbin:/bin:/usr/sbin:/usr/bin, possibly with Defaults env_reset
Feb
4
comment How do I allow privileged commands to fail but respond?
@umeboshi lspci and/or lsusb (can't remember which one..) do need root privileges for some options. The default (no parameter) output does run fine as a normal user though...
Feb
4
revised How do I allow privileged commands to fail but respond?
Add -i option to sudo to simulate initial login
Feb
4
comment How do I allow privileged commands to fail but respond?
@Tagwint: It does work for me however... (Tested on RHEL6) I'm assuming that if the PATH changes to allow running lspci with sudo, it will change for which run from sudo as well... (Yours does seem like a more generic solution..) (su tend to have different password requirements, which is problematic on systems without root passwords..) (sudo -i might be easier for sudo users)
Feb
4
comment How do I allow privileged commands to fail but respond?
Keeping {,/usr}/sbin/ out of the PATH doesn't do anything for security (unless using a restricted shell) - the user can run the command manually anyway (using a full path). I would not add them to the start of $PATH though, since /sbin traditionally contained potentially limited version of commands, in case /usr doesn't mount. On RHEL5, lspci is in /sbin/lspci.
Feb
4
answered How do I allow privileged commands to fail but respond?
Nov
29
awarded  Yearling
Jun
26
comment What a 64 bit Linux can do that 32 bit linux can't?
@richard: As far as I remember, on a 32-bit kernel, each process has a 4GiB address space, of which only a part can refer to actual usable RAM (some likely refers to Kernel functions, other to hardware) (Which is shy a reference was made to the "Memory split" setting) Also found this: linux-mm.org/VirtualMemory
Jun
10
awarded  Enlightened
Jun
10
awarded  Nice Answer
Dec
31
comment Make apt-get update and upgrade automate and unattended
I tend to run a apt-get dist-upgrade -dy first. (I actually do not run a upgrade / dist-upgrade itself automatically, it seems risky...) That would pre-download all the packages which at least make installing them faster...
Dec
31
comment Is there a way to use ssh remotely without configure the firewall?
That is quite a brilliant trick, but firewalls / NAT might still cause problems... (A DynDNS-type service would also work for getting the IP)
Dec
31
answered Safely using a hard drive dock
Dec
31
comment Is there a way to use ssh remotely without configure the firewall?
Additional note: Managing the .known_hosts file (or getting PuTTY to check for different keys on different ports would probably be annoying...)
Dec
31
comment Is there a way to use ssh remotely without configure the firewall?
The 20000 and 2222 would need to be changed if additional servers use the name internet server.
Dec
31
answered Is there a way to use ssh remotely without configure the firewall?
Nov
29
awarded  Yearling
Jan
25
revised How to disable energy saving on notebook screen when using Scientific Linux 6.3?
edited tags