Sponsored Content
Top Forums UNIX for Advanced & Expert Users Sudo and edit other user's info. Post 302739323 by linuxadmin on Tuesday 4th of December 2012 03:46:26 AM
Old 12-04-2012
RedHat Sudo and edit other user's info.

i did a mistake. Smilie
Code:
user1 ]$ vi ~/.bashrc
sudo su - user2

now , whenever I try to login to user1 , it will login to user2.

How can I resolve this ? Smilie

N.B
-- I do not have root access.
-- I dont know password of user2
-- this is a virtual machine.
 

9 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

User Info

How could I get the details about a user logged in a Unix system? ( WHat tasks did he perform or if he had changed any file or not)? Please answer my question. (1 Reply)
Discussion started by: s_dhar
1 Replies

2. Solaris

How can i edit /etc/vfstab in single user mode

Hi Experts /etc/vfstab is corrupted as while editing it i forgot to comment some of the line. how can i edit the file in single in user mod? also, i have some problem in CD drive , so i cant boot it from CD and do the changes. i tried mounding the root file system as rw, however no... (10 Replies)
Discussion started by: kumarmani
10 Replies

3. Shell Programming and Scripting

Update LDIF User info based on Test User Certs ID's

Hi I need help.......... I have an Sun One Directory server LDIF file with 5000 user entries, I need to change the data to match Test ID's, so I can run a perf test. I'm way out of my league as I have not done any scripting for 10 years. There are four entries for each user in the file... (3 Replies)
Discussion started by: Macdaddy99
3 Replies

4. UNIX for Dummies Questions & Answers

sudo user

I am trying to run a command from different user on my server. However when i execute the command it asks for password can you please help. when i use this command to switch user no password is required 1) sudo su - bilbtf42 when i use 2) sudo su - bilbtf42 cp file1 direcotry1/file1 ... (3 Replies)
Discussion started by: blackeyed
3 Replies

5. UNIX for Dummies Questions & Answers

Discover the last user in a group to edit a file?

Alright, so a number of users are in a group, and they have certain access rights to a file, which is owned by a single user, standard stuff, right? However, I need to know which user in that group was the last user to edit a file. Is there any way to determine this in SunOS 5.9? I've looked... (5 Replies)
Discussion started by: rainedragon
5 Replies

6. UNIX for Dummies Questions & Answers

sudo su - USER ??? How to??

Hi folks, Here is my question of the day 8-) I have to provide the ability to sudo su - orapd2 & sudo su - pd2adm for the following people User A, B, C, D which all of them are part of the group staff. orapd2 and pd2adm are also users. Users A, B, C, D should not type the password for... (2 Replies)
Discussion started by: 300zxmuro
2 Replies

7. Solaris

Help me to edit sudo file

I am trying to edit sudoers file by running the command #visudo. But it is not opening and error showing like 'it is read only filesystem'. Than I changed the permissions of /etc/sudoers file to 640 and modified it(after I change the permission to 440). Than it is modified successfully. But sudo... (2 Replies)
Discussion started by: welcome23
2 Replies

8. AIX

Sudo to other user

Hello All, I am trying to grant sudo privileges to a set of users (say tom and jerry) to sudo to another set of users (jim, harry). This is because we don't want to disclose the password of jim and harry. I did defined the user_alias and runas alias. %wms ALL = (USR) /usr/bin/su -, where wms... (7 Replies)
Discussion started by: ibmtech
7 Replies

9. UNIX for Dummies Questions & Answers

How to make user groups and edit permissions?

OK guys and gals. I've been working on a debian system for a little bit, in hopes of making it into a system we can use for manifests and other things. I am very new to unix, particularly debian. I would like to make 2 or 3 different groups. 1 would be for me, and other people... (1 Reply)
Discussion started by: samee71
1 Replies
vxsited(1M)															       vxsited(1M)

NAME
vxsited - site monitoring daemon SYNOPSIS
/etc/vx/bin/vxsited [mail_address...] DESCRIPTION
The vxsited daemon monitors Veritas Volume Manager (VxVM) for disks being attached, and reattaches a detached site if the disks that belong to that site become accessible. vxsited analyzes the output of the vxnotify command, and waits for a failed disk to attach. When a disk is attached, vxsited attempts to online the disk, and tries to reattach the failed site. If a site is successfully reattached, vxsited starts recovery using vxrecover, and sends mail to root (by default) or to other specified users. Mail Notification By default, vxsited sends mail to root with information about the disk status of any attempts to reattach the site. To send mail to other users, add the user login name to the line that starts vxsited in the startup script, /etc/init.d/vxvm-recover, and reboot the system. For example, if the line appears as: nohup vxsited root & and you want mail also to be sent to user1 and user2, change the line to read: nohup vxsited root user1 user2 & Alternatively, kill the vxsite process, and restart it from the command line with the required mail addresses as arguments. The mail notification has a format that is similar to the following: Subject : Volume Manager site reattach on host hostname Reattached site sitename in disk-group diskgroup Reattachment Procedure If a disk from a detached site becomes accessible again, vxsited checks whether the relocation daemon, vxrelocd, is running. If vxrelocd is running, vxsited attempts to reattach the site. The relocation daemon can then try to relocate the failed subdisks using space on the available disks in the disk group. If the failed objects are successfully relocated, vxrelocd changes the state of the site to RECOVER, and starts the recovery of volumes at the site. When all the plexes at a site have been recovered, the plexes are put into the ACTIVE state, and the state of the site is set to ACTIVE. If vxrelocd is not running, vxsited only reattaches a site when all the disks from that site become accessible. After successfully reat- taching a site, vxsited changes the site state to ACTIVE, and initiates recovery using vxrecover. When all the plexes from a site have been recovered, the plexes are put into the ACTIVE state, and the state of the site is set to ACTIVE. vxsited does not attempt to reattach a site that has been explicitly detached by an administrator. The state OFFLINE is set for sites that have been detached by using the following command: vxdg -g dg_name detachsite sitename Disabling vxsited If you do not want a site to be recovered automatically, kill the vxsited daemon, and prevent it from restarting. To kill the daemon, run the following command from the command line, and locate the process table entry for vxsited: ps -ef Execute the command: kill -9 PID Substitute the process ID of the vxsited process for PID. To prevent vxsited from being restarted, comment out the line that starts vxsited in the startup script /sbin/init.d/vxvm-recover. FILES
/sbin/init.d/vxvm-recover The startup file for vxsited. SEE ALSO
kill(1), mailx(1), ps(1), vxdg(1M), vxrelocd(1M), vxintro(1M), vxnotify(1M), vxrecover(1M) VxVM 5.0.31.1 24 Mar 2008 vxsited(1M)
All times are GMT -4. The time now is 06:30 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy