- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Default user 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
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
06-10-2004 09:26 PM
06-10-2004 09:26 PM
We included this in /etc/shells
We created a user whose default shell is /fullpath/veritas.sh
Our usual procedure is to open Exceed (for X terminal), then connect thru ssh using putty.
The problem is that after providing username and password the putty session automatically disconnects.
What could be the problem?
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-10-2004 09:31 PM
06-10-2004 09:31 PM
Re: Default user shell
Change the shell to /usr/bin/sh
regards,
RDL.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-10-2004 09:32 PM
06-10-2004 09:32 PM
Re: Default user shell
regards,
Fred
"Reality is just a point of view." (P. K. D.)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-10-2004 09:33 PM
06-10-2004 09:33 PM
Re: Default user shell
All flavours of UNIX has only sh,ksh,bash,POSIX shell but never heard of the shell you have mentioed(veritas.sh).
Propably veritas.sh is the script which calls netbackup java console. which must be included in user .profile file. No matter what shell the user uses if the script start with #!/sbin/sh
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-10-2004 09:39 PM
06-10-2004 09:39 PM
Re: Default user shell
What we actually want is for a particular user, say user01, to automatically run the script upon login. We want to prevent him from getting in the prompt.
Yes we are using tunnel.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-10-2004 09:42 PM
06-10-2004 09:42 PM
Re: Default user shell
sks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-10-2004 09:43 PM
06-10-2004 09:43 PM
Re: Default user shell
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-10-2004 09:47 PM
06-10-2004 09:47 PM
Re: Default user shell
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-10-2004 10:04 PM
06-10-2004 10:04 PM
Re: Default user shell
you need to export the display to user station. In the user .profile enter the command
export DISPLAY=
/fullpath/veritas.sh
Keep the exceed in passive mode.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-10-2004 10:29 PM
06-10-2004 10:29 PM
Re: Default user shell
Does ssh rely on /etc/shells. Not all program does, and maybe ssh has a more restrictive behaviour.
regards,
Fred
"Reality is just a point of view." (P. K. D.)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-11-2004 03:51 AM
06-11-2004 03:51 AM
Re: Default user shell
has "Enable X Forwarding" checked. By default, it's not.
I'm also not sure using the script as the shell will allow for the exporting of DISPLAY.
I would use a regular shell for the user, then put a call to the script in the user's .profile, followed by the "exit" command.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-11-2004 04:31 AM
06-11-2004 04:31 AM
Re: Default user shell
I mean, give the user a 'normal' shell, and execute veritas.sh. If this works, I guess using the veritas script as login shell forget to set all environment variables needed for the netbackup jave console. I would check this by adding a 'set > $HOME/env.txt' to the veritas script. Also redirect all output and stderr to a file so you can troubleshoot (e.g. command >>logfile 2>&1.
JP
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-11-2004 08:36 AM
06-11-2004 08:36 AM
Re: Default user shell
#!/usr/bin/sh
..rest of your shell script...
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-12-2004 03:27 PM
06-12-2004 03:27 PM
Re: Default user shell
Here are two scripts we use to access two different modes of Veritas
Script 1
#! /bin/ksh
# 09/25/01 dlamar Set terminals for veritas gui interface
export DISPLAY=cmisdl.corp.gottschalks.com:0.0
/usr/openv/java/jnbSA
Script
#! /bin/ksh
# 09/25/01 dlamar Set terminals for veritas gui interface
export DISPLAY=cmisdl.corp.gottschalks.com:0.0
/usr/openv/netbackup/bin/xbp
You can mainpulate their use however you feel, i.e. call from .profile, .shrc, .kshrc, etc.
Best regards,
dl
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-12-2004 06:11 PM
06-12-2004 06:11 PM
Solution1. #!/usr/bin/sh or ksh at the begining of veritas.sh
2.export DISPLAY=
3.Check putty config : Connection->SSH->Tunnels has "Enable X Forwarding" checked
4. give /fullpath/veritas.sh
Thanks,
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-12-2004 09:20 PM
06-12-2004 09:20 PM
Re: Default user shell
Here is my 2 cents on making the "export DISPLAY" part dynamic. Part of `who -m` will return the current IP of your session. Which you can extract and use it to set your "export DISPLAY" comment. Of course, you will need to "enable X11 tunneling" on your ssh client per many members suggested above.
Thx,
Howard