I have multiple .prm files that contain user ID's. The .prm files reside in multiple directories that allow users access to different areas of the system. (see below)
I need to remove a users access using their user id which resides in all the .prm files under the directory /apps/fourgen/accounting/menu
I have searched for user id, output to a text file and used sed to remove userid
When the user access was created the user id can be added to the middle of the line or at the end of the line hence the maryd, and maryd. I need to
remove both to keep the functionality of the file correct.
How do I get something like this into a script to remove the user id from all .prm files?
If you need update the prm file directly, try this: (be careful, test the command in temp folder and temp files first)
Your sed need support -i option.
I would like to update the .prm files directly however the -i option is not supported. Is there another way to do this? ie input changes back into
all the .prm files
If I output to a temporary file, how do I cat over the original file when there are entries from multiple files in the temporary file. How do I change all .prm files directly in directories, sub directories from the current working directory /apps/fourgen/accounting/menu. Im fine with the sed synatx.
Hi folks,
I am trying to grant the access like below items using the setfacl command, but i couldn't achieve as what I required. any other possibility.
username : testing
Readonly access in /form_dl/system/prd/logs
Write only access in /form_dl/system/prd/deploy
No access to other... (0 Replies)
Hi Experts,
According to the manual if you want to remove the password for a user account the "password" field in /etc/security/passwd should be set to "*"
So instead of this:
password = 6BqaLx8FeI8os
Should be set to this:
password = *
But when I run the following command in my AIX... (5 Replies)
Hi frds,
I have got a script restart.sh that kills and restarts a process. This scripts runs under a user called USER1 who is a normal user. Now my requirement is that i got other user named USER2 who should be able to run that script as USER1 as we dont want to share the password of user1 we... (2 Replies)
Hi There
I am having trouble in solving a scenario. We have some test systems on the network where users can login as themselves. These systems are connected to the LDAP server and authentication happens without any issues. These systems are used to create flars which are used to jumpstart other... (0 Replies)
We have gotten an application that will read and display logs in a report format. The application need a user name and password to access the AIX servers where the logs reside. My problem is the logs are in a few different file systems on the server. Is there any way to lock the user to only the... (1 Reply)
Besides doing some shell-script which loops through /etc/passwd, I was wondering if there was some command that would tell me, like an enhanced version of getent.
The Operating system is Solaris 10 (recent-ish revision) using Sun DS for LDAP. (5 Replies)
Is there any way I can restrict a user to 1 directory when logging in but give the access to another directory? For example restrict the user to /home/user at login but also allow then to access /opt/data/user. (1 Reply)
Hi,
We were just recently given a new VM instance with Red Hat linux.
The only user account that can log in successfully is the root account. I made sure that the user z021407 has access to their directory and the account can read the home directory, but I can't log in with the new account... (2 Replies)
Hello,
I am trying to remove an employing from our database, I have removed all her files but can't remove the directory because of the hidden files.
How do I remove the user?
Thanks, (1 Reply)
I created a user which I would like to have access only to FTP. I am able to get FTP to the machine with that user, but I only want him to have access to two directories, and no shell access. How can I accomplish this?
Thanx,
Aaron (1 Reply)