Sponsored Content
Top Forums UNIX for Advanced & Expert Users History to Another file [local user history , but root access] Post 302551688 by psshah on Wednesday 31st of August 2011 10:06:32 AM
Old 08-31-2011
Yep.


Check for:

Last edited by psshah; 08-31-2011 at 11:08 AM.. Reason: Updated Links
This User Gave Thanks to psshah For This Post:
 

10 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

How to access all user history file

Team , using fc command we can get details of our history file .. Is it possible to get the same result for different user from root.. Actually I need to collect all the stuff from select users history file for day to day basis. thanks in advance .. (2 Replies)
Discussion started by: rgpai9972
2 Replies

2. Shell Programming and Scripting

access user history as root

Hi, I need to access a user's command history. However, the dilemma is that he is logged in and so his current history is not yet flushed to .bash_history file which gets flushed when he logs out. Is there a way I can still access his most recent history? thank you, S (4 Replies)
Discussion started by: sardare
4 Replies

3. UNIX for Dummies Questions & Answers

How to review the history and the commands that has been done in this history?

Hello every body, Kindly inform me How Do i find out the time I executed a command previously on UNIX Solaris?? To be more specific and more clear about what i want to know is that I want a command the enables me to know the history and which command i run at this history/time. FYI I used... (5 Replies)
Discussion started by: ahmedamer12
5 Replies

4. Shell Programming and Scripting

Temporary command history on local machine

Hey guyz, I'm trying to get the command history for my active users sessions on the local machine and i kinda hit a tough wall Is command-line history for my current user saved somewhere else besides $HOME/.bash_history? I have been told that there is some temporary file stored on the local... (2 Replies)
Discussion started by: mishu_cgm
2 Replies

5. UNIX for Dummies Questions & Answers

History to Another file [local user history , but root access]

Hi all, My need is : 1. To know who , when , which command used. 2. Local user should not delete this information. I mean , with an example , i can say i have a user user1 i need to give all the following permissions to user1, : a. A specific directory other than his home... (1 Reply)
Discussion started by: sriky86
1 Replies

6. Red Hat

How to check local accounts have root and user access rights ?

Hi, I have three servers,For 3 servers how i can take output,all the local accounts and details of whether the access is Root or User access. cheers (1 Reply)
Discussion started by: ranjithm
1 Replies

7. Shell Programming and Scripting

History of all the users in single file with command , date . time , ip and user

HTML Code archive_history() { HISTORYOLD=${HISTFILE}.archive CURTIME=`date` CURTTY=`tty` IP=$(echo $SSH_CLIENT | awk '{print $1}') if ; then echo "#-${HOSTNAME}-- ${CURBASHDATE} - ${CURTIME} ($CURTTY) ${USER} ${IP}----" >> $HISTORYOLD history... (2 Replies)
Discussion started by: rehantayyab82
2 Replies

8. Shell Programming and Scripting

History of all the users in single file with command , date . time , ip and user

HTML Code: archive_history() { HISTORYOLD=${HISTFILE}.archive CURTIME=`date` CURTTY=`tty` IP=$(echo $SSH_CLIENT | awk '{print $1}') if ; then echo "#-${HOSTNAME}-- ${CURBASHDATE} - ${CURTIME} ($CURTTY) ${USER} ${IP}----" >> $HISTORYOLD history... (0 Replies)
Discussion started by: rehantayyab82
0 Replies

9. Shell Programming and Scripting

On korn shell, how to share history between regular user and root?

I'm exploring OpenBSD and want to stick to its default shell, which is ksh. My goal is for my regular user ("bruno") and root user to have a shared history file. However, it seems that when running as root, ksh refuses to write to a HISTFILE that is owned by non-root user. This illustrates the... (3 Replies)
Discussion started by: DevuanFan
3 Replies

10. What is on Your Mind?

The Great History of UNIX (1969-1999) | 30 Years of UNIX History | YouTube Video

I am pleased to announce this new video in 1080 HD for UNIX lovers honoring thirty years of UNIX history spanning from 1969 to 1999 presented in 150 seconds (two and a half minutes) in 1080 HD, celebrating the 50th anniversary of UNIX. The Great History of UNIX (1969-1999) | 30 Years of UNIX... (8 Replies)
Discussion started by: Neo
8 Replies
cdsalias(1m)															      cdsalias(1m)

NAME
cdsalias - A dcecp object that lets you manipulate cell names in CDS SYNOPSIS
cdsalias catalog cdsalias connect cdsalias create cellalias_name cdsalias delete cellalias_name cdsalias help [operation | -verbose] cdsalias operations ARGUMENTS
A single, fully qualified alias name of the cell in the following form: /.../cellalias_name The name of the cdsalias operation for which to display help information. DESCRIPTION
The cdsalias object represents cell names as known by the Cell Directory Service (CDS). This object lets you manipulate alias and pre- ferred names of DCE cells. Each cell has one preferred name. Cells may also have alias names. This object affects only the CDS compo- nent. The security server and each host must also be informed of any new cell aliases. This object can also be used to define a hierarchical relation between one cell and another by connecting the first cell's root directory namespace into the the second cell's namespace. When defining a hierarchical relationship, you must use the account command to establish a trust relationship between the cells. To manipulate alias and preferred names, the CDS_DirectoryVersion attribute must be set to 4.0 or greater. See the ATTRIBUTES section of the directory command for more information. OPERATIONS
cdsalias catalog Returns a list of all defined cell aliases in CDS. The syntax is as follows: cdsalias catalog The catalog operation returns a list of all defined cell aliases in CDS. Each alias name is labeled either alias or primary, depending on which name is the current preferred name. Privileges Required Requires r (read) permission on the root directory of the cell. Examples dcecp> cdsalias catalog {CDS_CellAliases {Alias /.../green.cell.osf.org} {Primary /.../blue.cell.osf.org}} dcecp> cdsalias connect Establishes a hierarchical relationship between two cells. The syntax is as follows: cdsalias connect The connect operation creates a hierarchical relationship between two cells. It takes no argument. The current preferred name of the cell is used and the last relative distinguished name (RDN) is removed to identify the parent cell. This operation returns an empty string on success. Privileges Required Requires a (auth_info) permission on the the local cell's root directory. Also, the CDS server principal on the machine containing the master replica of the local cell's root directory needs i (insert) permission on the parent cell's root directory. Examples dcecp> cdsalias connect dcecp> cdsalias create Creates a new alias cell name in CDS. The syntax is as follows: cdsalias create cellalias_name The create operation creates a new alias cell name in CDS. The required argument is a single fully qualified alias name of the cell. This operation returns an empty string on success. Privileges Required Requires a (auth_info) permission on the root directory of the cell. Examples dcecp> cdsalias create /.../green.cell.osf.org dcecp> cdsalias delete Deletes an existing alias cell name from CDS. The syntax is as follows: cdsalias delete cellalias_name The delete operation deletes an existing alias cell name from CDS. The required argument is a single fully qualified alias name of the cell. If the alias name does not exist, an error is returned. You cannot use this command to delete the preferred cell name. This opera- tion returns an empty string on success. Privileges Required Requires a (auth_info) permission on the root directory of the cell. Examples dcecp> cdsalias delete /.../green.cell.osf.org dcecp> cdsalias help Returns help information about the cdsalias object and its operations. The syntax is as follows: cdsalias help [operation | -verbose] Options Displays information about the cdsalias object. Used without an argument or option, the cdsalias help command returns brief information about each cdsalias operation. The optional opera- tion argument is the name of an operation about which you want detailed information. Alternatively, you can use the -verbose option for more detailed information about the cdsalias object itself. Privileges Required No special privileges are needed to use the cdsalias help command. Examples dcecp> cdsalias help catalog Returns the aliases known by CDS for the named cell. connect Establishes a hierarchi- cal relationship between two cells. create Creates the named cdsalias for the local cell. delete Deletes the existing cdsalias from the local cell. help Prints a summary of command-line options. operations Returns a list of the valid operations for this command. dcecp> cdsalias operations Returns a list of the operations supported by the cdsalias object. The syntax is as follows: cdsalias operations The list of available operations is in alphabetical order except for help and operations, which are listed last. Privileges Required No special privileges are needed to use the cdsalias operations command. Examples dcecp> cdsalias operations catalog connect create delete help operations dcecp> RELATED INFORMATION
Commands: dcecp(1m), dcecp_account(1m), dcecp_cellalias(1m), dcecp_directory(1m), dcecp_hostdata(1m). cdsalias(1m)
All times are GMT -4. The time now is 11:02 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy