On 6/12/23 09:03, Radoslaw Skorupka wrote:
I need to review some user home directories. However they have
auto-mounted filesystems.
How to search it without asking folks to logon?
I have not tried this on USS, but with other automounters, simply 'cd
~user' will force a mount of that user's home directory.
Try it.
Often, I'll get an error from 'cd ~user' if the target user's home
directory is not available to me. (Sometimes even when doing the 'cd' as
root/admin.) But the system cannot know the settings until the directory
gets mounted, so forcing the mount would seem to be a requirement ahead
of knowing if the 'cd' would work. But then, if you're needing to
"review some user home directories", read rights are implied.
The tilde hack is a shell feature, but I'm not aware of any contemporary
shells where it doesn't work. If tilde doesn't work, then fully
qualified path to the user's home directory works.
Note: it is not related to any hacking or unauthorized access. I can
have any authority I would need, including some tricks to logon using
their userid, etc. Looking for simple method to run automount by a
command, etc.
-- R; <><
----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [email protected] with the message: INFO IBM-MAIN