Sponsored Content
Top Forums UNIX for Advanced & Expert Users RBAC: create a user to shut the server Post 302123651 by craigp84 on Tuesday 26th of June 2007 01:11:41 PM
Old 06-26-2007
Hi chaandana,

Sorry if i'm stating the obvious, but it doesn't look like you're su'ing to the stopsys role before trying to shutdown?

login: user10
password:
$ su stopsys
Password:
$ shutdown -y -g0 -i5

Hope this helps,

Craig
 

9 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

Other than root user .Normal user is unable to create files

Hi all, I am using Sun Solaris 9 .In this system normal users unable to create files from the command line.I added these users in bin,adm and even root group i found them unable to create a file. (1 Reply)
Discussion started by: mallesh
1 Replies

2. Linux

Sudo user vs RBAC

Hi all, What the difference between the sudo users & RBAC when the talk of effects after doing the above comes??? any differences between them ,kindly list ?? (1 Reply)
Discussion started by: saurabh84g
1 Replies

3. Solaris

To Shut down the server. Do the Maintainance and Start Up the server

Hello All I just want to know how to Shut Down the Solaris Machines( Servers ) for Maintainance and then Start Up the Machines ( Servers ) . I think I will have to Log In as root to do that . Also how do i Check if all the services running on that server before shut down are running... (6 Replies)
Discussion started by: supercops
6 Replies

4. Solaris

Directory Server + RBAC on one server

Hello everyone, I have been trying to find a way to setup a directory server working with RBAC on Solaris. I will try to figure out my environment and my concerns. Here we go : - I have Unix servers mostly running Solaris 10 and 9 in my environment. - I have users/user groups that need to... (4 Replies)
Discussion started by: niyazi
4 Replies

5. Ubuntu

Create New User with the same group nd privileges of the other user

Hi, Anyone can help me on how to duplicate privileges and group for useroradb01 to userrootdb01. I have currently using "useroradb01" and create a newly user "userrootdb01". I want both in the sames privileges and group. Please see the existing users list below; drwxr-xr-x 53 useroradb01... (0 Replies)
Discussion started by: fspalero
0 Replies

6. Homework & Coursework Questions

Create script to add user and create directory

first off let me introduce myself. My name is Eric and I am new to linux, I am taking an advanced linux administration class and we are tasked with creating a script to add new users that anyone can run, has to check for the existence of a directory. if the directory does not exist then it has... (12 Replies)
Discussion started by: pbhound
12 Replies

7. Ubuntu

Any way we can create an SMTP server and use any scripting language to read emails from that server

Is there any way to create an SMTP mail server will all granular permissions to it so that I can read emails which that server receives through any scripting language and also reply from the same server automatically? (3 Replies)
Discussion started by: sandeepcm
3 Replies

8. Shell Programming and Scripting

How to scp File from root user in one server to say crt user in another server and avoid password?

Can someone help in writing some script through which I can transfer file (scp) from root user in abc server to crt user in hfg server and can give the crt user password in script itself so that it doesn't prompt me every time for password (4 Replies)
Discussion started by: Moon1234
4 Replies

9. Solaris

Assigning proc_owner privilege to particular user in RBAC

Hi I need to assign proc_owner privilege to particular user through RBAC. How can I assign this privilege to user, I need help on this. Further I need to understand if I give this proc_owner privilege to particular user, what kind of control user will get on other user or system processes... (7 Replies)
Discussion started by: sb200
7 Replies
ftpshut(1)						      General Commands Manual							ftpshut(1)

NAME
ftpshut - create shutdown message file to shut down the ftp servers at a given time SYNOPSIS
time [ warning-message ... ] DESCRIPTION
The command provides an automated shutdown procedure that a superuser can use to notify ftp users when the ftp server is shutting down. This command will create a shutdown message file in the path specified by the 'shutdown' directive in the file in the real, anonymous and virtual user accounts. For guest accounts the system administrator must copy the message file created in the real user account to the guest accounts manually. The server will check this file regularly to see if the server is going to be shut down. This option causes the program to display copyright and version information, then terminate. This option is used as deny_offset. New FTP access is disabled 'min' minutes before shutdown. The default value of 'min' is 10 minutes. This value can be reset by the user. This option is used as disc_offset. All current FTP connections will be dropped 'min' minutes before shutdown. The default value of 'min' is 5 minutes. This value can be reset by the user. time time, is the time at which the ftp server will be shutdown. If is set to the word `now' the shutdown will be immedi- ate. time can also be set to a future time. Future time can be specified in one of the two formats: + number or HHMM. The first format brings the ftp servers down in number minutes. The second format brings the ftp servers down at the time of day indicated, using a 24-hour clock format. warning-message The warning-message is the message the server will flash to its clients on shut down. The user can use a message of his choice or use the 'macros' or 'magic cookies' that are available. The server will replace the macro with the specified text string. The warning-message will be formatted to be 75 characters long, including the length of any expanded macros ("magic cookies"). The default warning message is "System shutdown at %s". The following magic cook- ies are available: %s time system is going to shut down %r time new connections will be denied %d time current connections will be dropped %C current working directory %E the maintainer's email address as defined in ftpaccess %L local host name %M maximum allowed number of users in this class %N current number of users in this class %R remote host name %T local time (form Thu Nov 15 17:12:42 1990) %U username given at login time WARNINGS
You can kill the servers only between now and 23:59, if you use the absolute time for EXIT STATUS
returns: 0 successful 1 failure -1 the wrong parameter was passed to AUTHOR
was developed by the Washington University, St. Louis, Missouri. SEE ALSO
ftpaccess(4) ftpshut(1)
All times are GMT -4. The time now is 06:14 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy