You want to login as user A, but automatically become user B, and stay user B.
When then this weird user logs out he just logs out and is never really user A. Right?
Simply giving user A the same group id as User B will not do what you want. -- assuming I understand what you want.
Here is the very insecure quick version for solaris, run as root (change directory names to work for you):
Give userA a password.
next create a login .profile for userA that looks like this:
next
If you really need this, consider learning about RBAC for Solaris, instead of this hack. Blastwave.org - An OpenSolaris Community Site has sudo for Solaris, which is a quicker way to get fine control over something like tihs.
While logged on as root, I created a user 'usera'
I also created a group called 'groupa'
I need to modify the permission of the user i created to not have root privileges.
I also need to change groupa to be in 'others'
please help!
thanks,
nieves (3 Replies)
I know there is a "groups" command to list the groups a user belongs to, but how about the opposite? Is there a standard command to find out which users belong to a particular group? (2 Replies)
Does anyone know how to get around the unix group file limitation whereby you have a limit of 1024 characters when adding users to a unix group? (3 Replies)
HI friends,
select count(*),country_code from employees_table group by country_code having com_country_code in ("US","UK")
CAn we have an equivalent command in Unix to achieve this
Thanks in advance
Suresh (5 Replies)
In CS140 .... I am having a very hard time with lab 4. I am wondering if we could put together a study group in portland. This could help all of us. Post here and I will PM you my # and we can set it up over the phone. (0 Replies)
Hi,
I have file with Header Data and trailer records
Head|currentdate|EOF
Data|AAA|BBB|CCC|DDD|EEE|Source1
Data|AAA|BBB|CCC|DDD|EEE|Source1
Data|AAA|BBB|CCC|DDD|EEE|Source2
Data|AAA|BBB|CCC|DDD|EEE|Source2
Data|AAA|BBB|CCC|DDD|EEE|Source2
End|rec|EOF
Now I need the count of only... (3 Replies)
Hi,
I am new to unix. I am facing access permission issue
I want to access path
/app/compress from a user "test" but getting permission denied error
This path exist in "Main" user
So after some googling i came to know we need to add "test" user in "main" group
so path /app/compress ... (7 Replies)
Hi team i have input file
name,dep,sal
xxx,1,100
yyy,2,,200
zzz,1,3000
eeee,1,200
ttttt,2,500
zzz,2,123
xyxy,3,1000
and output i require as below i.e highest value from colum3 grouping bydep, with all three columns name,dep,sal
name,dep,sal
zzz,1,3000
ttttt,2,500
xyxy,3,1000 (3 Replies)
Hi All,
I am using RHEL 6.9. I got a requirement to group the records in a file.The file content as shown below.
#### FAILED JOBS IN XXX #####
1> ABCD failed in the project XXX
2> HJK Job is in compiled state in the project XXX
3> ILKD failed in the project XXX
4> DFG failed in the... (5 Replies)
Discussion started by: ginrkf
5 Replies
LEARN ABOUT REDHAT
nwborm
NWBORM(8) nwborm NWBORM(8)NAME
nwborm - Remove a NetWare Bindery Object
SYNOPSIS
nwborm [ -h ] [ -S server ] [ -U user name ] [ -P password | -n ] [ -C ] [ -o object name ] [ -t type ]
DESCRIPTION
nwborm removes the specified NetWare Bindery Objects.
nwborm looks up the file $HOME/.nwclient to find a file server, a user name and possibly a password. See nwclient(5) for more information.
Please note that the access permissions of $HOME/.nwclient MUST be 600 for security reasons.
OPTIONS -h
-h is used to print out a short help text.
-S server
server is the name of the server you want to use.
-U user
user is the user name to use for login.
-P password
password is the password to use for login. If neither -n nor -P are given, and the user has no open connection to the server, nwborm
prompts for a password.
-n
-n should be given if no password is required for the login.
-C
By default, passwords are converted to uppercase before they are sent to the server, because most servers require this. You can turn off
this conversion by -C.
-o object name
The name of the object to be deleted.
-t object type
The type of the object. Object type must be specified as a decimal value. Common values are 1 for user objects, 2 for group objects and
3 for print queues. Other values are allowed, but are usually used for specialized applications.
AUTHORS
nwborm was written by Volker Lendecke with the corresponding Caldera utility in mind. See the Changes file of ncpfs for other contributors.
nwborm 7/9/1996 NWBORM(8)