I know that both support specifying the username, which can be forced using an alias in root
-owned ~/.bashrc
, but one can temporarily disable the alias by prepending the command with \
, so what are the options to force these programs to show the current user only when the user isn't root
? I'm clueless as to what terms to use in Google ...
In case it matters, it's Ubuntu Linux 12.04.4 on 3.10.23-xxxx-std-ipv6-64 64-bit especially created by OVH.
EDIT 0: Unless I failed with it, rsync
completely ignores the environment variable which specifies the password. Using the password file option doesn't work without a Server running on the other end.
The problem with specifying passwords for scripted runs such as cronjobs is you can't, and most programs don't mask the pw (apart from wget
) nor allow other methods to tell it. However, the issue at hand is to prevent these 2 programs telling the sensitive info to other users, which seemingly can be prevented by adding a setting to /proc
's mount line. Once this is solved, we can move to other similar issues.
I'm still a basic Linux Admin but I'm trying to work out single systems where multiple users can work on using SSH, and that opens an array of security issues.
EDIT 1: Some programs run long enough to show up in [h
]top
for someone to copy, which is the root of the concern. If we assume we can trust the staff members, showing up passwords in [h
]top
needs to be prevented.
rsync
doesn't care about the password variable, and no program that likely requires a password, such as FTP, allow it via the parameters only [in the case of scripted run], likeftp USER:PASSWORD@HOST
, and next are programs which don't look for the password amongst the parameters. This is one problem I have on Linux. – rautamiekka Mar 16 '14 at 22:02expect
to automate replying to the password prompt by feeding it a password from a file. – goldilocks Mar 16 '14 at 22:16expect
exits after the command is run, so it does not appear on the command-line. – goldilocks Mar 16 '14 at 22:17expect
in a script http://stackoverflow.com/a/15177797/1151724a script: – goldilocks Mar 16 '14 at 22:22root
comes nose around ? – rautamiekka Mar 16 '14 at 22:24/proc
? If so, what are you asking? – terdon Mar 16 '14 at 22:46