- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Prevent accessing a shell ?
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-30-2002 09:26 PM
09-30-2002 09:26 PM
Prevent accessing a shell ?
a xterm
a shell,
on a B2000 machine ?
I have a CDE environment.
Which parameters do i need to tune ?
Thanks
Aravind
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-30-2002 09:45 PM
09-30-2002 09:45 PM
Re: Prevent accessing a shell ?
Iam not sure I undersood your question. You want to restrict a user from logging in. right ?
Put the user's default shell in /etc/passwd as
/dev/null instead of /bin/sh
regards,
U.SivaKumar
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-30-2002 10:00 PM
09-30-2002 10:00 PM
Re: Prevent accessing a shell ?
The user should be able to login.
But he should have an access only to the Application running on the server when he logs in and nothing else.
Hope it's clear
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-30-2002 10:07 PM
09-30-2002 10:07 PM
Re: Prevent accessing a shell ?
It's very difficult, because if a user have to log in to the machine the user needs a shel.
So one way is to restrict the user (restricted shell, no access to bin-directory or so)
another way is to forbid the direct connection to the machine and only allow connections via clients (e.g sqlplus to oracle)
a third way is to give the user the application as shell in /etc/passwd (if possible), so the user starts not a shell but the application
Christian
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-30-2002 10:09 PM
09-30-2002 10:09 PM
Re: Prevent accessing a shell ?
Then have a look at this link
http://bizforums.itrc.hp.com/cm/QuestionAnswer/1,,0x13647d4cf554d611abdb0090277a778c,00.html
regards,
U.SivaKumar
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-30-2002 11:35 PM
09-30-2002 11:35 PM
Re: Prevent accessing a shell ?
Instead of putting a shell in the passwd file, you could run the application from there, that way when they log in it will automatically run the application.
Or amend their .profile, so that it starts the application.
Regards,
Hilary
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-01-2002 12:00 AM
10-01-2002 12:00 AM
Re: Prevent accessing a shell ?
hth
-balaji
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-01-2002 05:30 AM
10-01-2002 05:30 AM
Re: Prevent accessing a shell ?
in their profile have them exec the application. When the application terminates they get logged off.
live free or die
harry
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-01-2002 09:16 AM
10-01-2002 09:16 AM
Re: Prevent accessing a shell ?
This is not really possible by conventional means. Kind of like having windows and removing explorer. You can give them the impression that it's gone, but CDE requires a valid shell in order to launch.
Now, there is a hack method, which is to write scripts in place of the standard dtterm, xterm, and hpterm which act as a wrapper.
I.E.
mv /usr/bin/X11/xterm /usr/bin/X11/.xterm
touch /usr/bin/X11/xterm
chmod 4555 /usr/bin/X11/xterm
chown root:bin /usr/bin/X11/xterm
edit /usr/bin//X11/xterm to do something like...
#!/usr/bin/sh
ME=`/usr/bin/who am i`
BADUSR=/list/of/bad/users
if [ -f $BADUSR ] ; then
for USR in `cat $BADUSR` ; do
if [ "${ME}" = "${BADUSR}" ] ; then
exit 0
elif [ "${ME}x" = "x" ] ; then
echo "script broke"
else
/usr/bin/X11/.xterm $*
fi
done
else
echo "$BADUSR list does not exist"
#bypass list
/usr/bin/X11/.xterm $*
fi
Did not test it and it could have side effects. Just use caution!!!
Regards,
Shannon