Sponsored Content
Top Forums Shell Programming and Scripting Not able to 'su' to other user when rebooting the server Post 302243501 by Selva_Kumar on Monday 6th of October 2008 01:34:06 AM
Old 10-06-2008
Not able to 'su' to other user when rebooting the server

Hi All,

I have created one script with starting letter 'S' (Example: Start) and stored in the path "/etc/rc.d/".

This script was called automatically when we reboot the server.
In this script i am using 'su' command to switch other user but it is not working, it giving some error.

su sas -c "pwd ; whoami"

Note:

After done the reboot, same command is working fine but it is not working when we rebooting the server.

Please help me to resolve this issue.
 

10 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

Server name + IP address removed from host table after rebooting

Hi, I have a problem with a Unix server (SCO Unix version 3.2). If this server is rebooted the own server name and it's IP address is removed from the host table. How is this possible? How can i solve this problem? (3 Replies)
Discussion started by: FIRE
3 Replies

2. UNIX for Advanced & Expert Users

Solaris 9 server hangs, when rebooting

Hi, We have a SunFire V880, hooked up with 2 T3 arrays. When ever we issue a reboot command on the system, it hangs at the same place right where it says syncing file systems done. To bring it back we shutdown power and it comes clean. By the way init 6 command works fine. Has anyone come... (3 Replies)
Discussion started by: smohd
3 Replies

3. UNIX for Dummies Questions & Answers

Server rebooting frequently

O/P of the uname -a Server Server 4.0 3.0 3516 Pentium IV(TM)-ISA/PCI Server is getting rebooted frequetly... I don't know what is the problem in server ... Any help why the server is getting rebooted frequetly. Can i check what is the problem like in log files (5 Replies)
Discussion started by: srikanthus2002
5 Replies

4. Shell Programming and Scripting

How to call the ksh script when rebooting the server

Hi all, Can any one help me....... I just want to run one shell script whenever i am rebooting the server. Is there any easy way to do that???? Thanks, selva (7 Replies)
Discussion started by: Selva_Kumar
7 Replies

5. Solaris

problem in rebooting solaris server

Hi, While we rebooting solaris server ,the system going to Maintenance mode instead of login console. even we are not able to run fsck command . Thanks in advanced for help. log attached FYI Executing last command: boot Boot device: /pci@83,4000/FJSV,ulsa@2,1/disk@0,0 File and args:... (3 Replies)
Discussion started by: helplineinc
3 Replies

6. Solaris

How to auto start MySQL server on Opensolaris after rebooting the machine?

Hi, In Linux, I will do it by editing the /etc/rc.d/rc.local . However, I can't find a rc.local file in Opensolaris. So, how can I do it in Opensolaris? I am new to opensolaris, so please teach me step by step. Thanks in advance. (4 Replies)
Discussion started by: AlexCheung
4 Replies

7. Solaris

Server Rebooting frequently

Deall All, I have facing some problem. I have a Sun 4500 Server at the customer place. Now the server is not booting mean's once the server is coming up it is automatically rebooting. As this is the critical server for the customer that is use for production . Can this be solved by... (10 Replies)
Discussion started by: sudhansu
10 Replies

8. Red Hat

Server rebooting unexpectedly

hi, I have been working on Solaris am very new to linux. My concern is as it goes....our server is getting rebooted automatically and I am not able to understand anything from the var log messages. Could anybody help me out in troubleshooting the issue. 2.6.18-128.el5 #1 x86_64 GNU/Linux is... (1 Reply)
Discussion started by: EmbedUX
1 Replies

9. Solaris

Remote managemnt - looking at hardware issue (using ALOM ) Server rebooting

Hi we have A sun4v SPARC Enterprise T2000 It has started to go down frequently without producing any corefiles. There is nothing in the logs to induicate any issues. So I'm trying to remotely check this and get to see if there are any hardware issue. I heard about ALOm and I think this is... (4 Replies)
Discussion started by: mnassiri
4 Replies

10. Red Hat

Server health Checks pre & post Rebooting

Hi, Earlier we used to reboot servers based on adhoc request, never checked anything on it pre-reboot., But now i need to reboot regularly but most of the info is not available, I need to know want to make sure that server to be rebooted without any issues, so I want to do few prechecks which will... (5 Replies)
Discussion started by: nanz143
5 Replies
dtsd(1m)																  dtsd(1m)

NAME
dtsd - Restarts the DTS daemon SYNOPSIS
dtsd [options] [-d] [-w serviceability] dtsd [-s [-k courier|noncourier] [-g] [-o]] dtsd -c ARGUMENTS
Debug mode. The command will run in the foreground. See svcroute(5) for the full description of the appropriate format for this entry. Only the three-field format, severity:how:where, is used. An example is: FATAL:TEXTFILE:/dev/console Run as a server. Default is backup, courier, local server Run dtsd as a global server. Run dtsd as a courier. Run dtsd as a noncourier. When enabling as a server, set the clock immediately. Equivalent to the command enable set clock true in dtscp or to the command dcecp dts activate -abruptly. Run dtsd as a clerk. DESCRIPTION
The dtsd command invokes the DTS daemon (clerk or server process). This command is usually executed as part of the overall DCE startup script, rc.dce. You can enter the command manually under the following conditions: If a DTS daemon fails to start automatically upon reboot If you want to restart a daemon that you shut down to perform a backup or do diagnostic work In normal rebooting, the rc.dce script automatically provides arguments appropriate to the choice of configuration options. The command line arguments shown here can also be provided to dced as part of the fixed configuration strings, if dced is configured to automatically start the dtsd. If dtsd is started with no arguments (other than -d and -w), then the server must be started with dcecp. The following example configures a local server: dcecp> dts configure -notglobal dcecp> dts activate Privilege Required DTS runs as the host machine principal, which is usually root. See the Security reference pages for information about principals. NOTES
Use dtsd interactively only when troubleshooting; use the rc.dce script to start the DTS daemon. On some systsems the superuser is associ- ated with the machine principal. EXAMPLES
To restart the daemon, follow these steps: Log in to the system as superuser (root). Use the ps command to make sure that dced and cdsadv are running. (The DCE daemon provides the endpoint mapping and security services, and cdsadv provides CDS.) Enter the following command to restart the dts daemon as a clerk: $ dtsd -c To restart the dts daemon as a server, use dtsd -s and to restart it as a global server, setting the clock on startup, use dtsd -s -g -o RELATED INFORMATION
Commands: dtscp(1m), dtsdate(1m), dcecp(1m). Books: OSF DCE Administration Guide dtsd(1m)
All times are GMT -4. The time now is 05:06 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy