07-02-2008
what do you mean by "block" a user?
as sureshcisco emntioned, you can only lock or delete users. if you're talking abt RBAC, its different issue
![Big Grin Smilie](https://www.unix.com/images/smilies/biggrin.gif)
8 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Got the answer as it can be done using yast tool in SUSE linux (0 Replies)
Discussion started by: jambesh
0 Replies
2. UNIX for Dummies Questions & Answers
You guys tell me. Am I wrong on this one? If so, where is the hole in my thoughts?
Thanks,
Duke
Specs:
Solaris version of Unix
"ROOT" primary group is "other" (GID = 1)
Application account (not system account) is assigned to the "other" GID (1).
Issue:
Application... (3 Replies)
Discussion started by: F150 Duke
3 Replies
3. UNIX for Dummies Questions & Answers
I am an administrator of a Red Hat Enterprise Linux system.
Now one account expired. I wonder how to reactivate the account.
Thanks (2 Replies)
Discussion started by: cy163
2 Replies
4. Linux
Hi,
Can anyone please guide me how can I remove/block a user from a server access.
/usr/sbin/adduser -d /home/john john
echo ****** | passwd --stdin john
I used the above command to add a user "john". How do I delete and block john.
Appreciate your responses. (1 Reply)
Discussion started by: sureshcisco
1 Replies
5. UNIX for Dummies Questions & Answers
Thanks
AVKlinux (3 Replies)
Discussion started by: avklinux
3 Replies
6. Red Hat
How can I use the command "startx" by other user account such as "oracle" ??
I cannot startx by user account oracle ??
How to fix it ???
Any adivce ???
I use red hat linux kernel 2.6
$ startx
Fatal server error:
PAM authentication failed, cannot start X server.
Perhaps you do... (0 Replies)
Discussion started by: chuikingman
0 Replies
7. Red Hat
Hi,
I have to move user account from solaris to Linux environment because I don't want user to create password again in Linux environment, so could somebody confirm me how to do it, I know there are files /etc/groups, /etc/passwd and /etc/shadows need to copy but somebody confirm me what is the... (2 Replies)
Discussion started by: mnaumanca
2 Replies
8. Shell Programming and Scripting
good evening .. I have a plea, who I can help me with a management application user rights on the files in a Unix / Linux
I need for college .. .. and not told us no clue .. thank you (1 Reply)
Discussion started by: alex90
1 Replies
LEARN ABOUT OSF1
lock_init
lock_init(9r) lock_init(9r)
NAME
lock_init - General: Initializes a complex lock
SYNOPSIS
#include <kern/lock.h>
void lock_init(
lock_t lock_structptr,
boolean_t can_sleep );
ARGUMENTS
Specifies a pointer to the complex lock structure, lock. The lock structure is an opaque data structure; that is, its associated members
are referenced and manipulated by the operating system and not by the user of the complex lock mechanism. Specifies a Boolean value that
indicates whether to allow kernel threads to block (sleep) if the complex lock is asserted. You can pass to this argument only the value
TRUE (allow kernel threads to block if the lock is asserted).
DESCRIPTION
The lock_init routine initializes a complex lock. You identify this lock by declaring a pointer to a complex lock structure and passing it
as the first argument. The complex lock structure pointer must be initialized before you can assert read and write operations on the com-
plex lock.
RETURN VALUES
None
FILES
SEE ALSO
Routines: lock_done(9r), lock_read(9r), lock_terminate(9r), lock_try_read(9r), lock_try_write(9r), lock_write(9r)
Data Structures: lock(9s)
lock_init(9r)