pam_console_appy(8) System Administrator's Manual pam_console_appy(8)NAME
pam_console_apply - set or revoke permissions for users at the system console
SYNOPSIS
pam_console_apply [-r]
DESCRIPTION
pam_console_apply sets or resets permissions on devices in the same manner as pam_console.
If /var/run/console.lock exists, pam_console_apply will grant permissions to the user listed therein. If the lock file does not exist,
permissions are reset to those listed in /etc/security/console.perms, which should be configured to set permissions on devices so that root
owns them.
ARGUMENTS -r Signals pam_console_apply to reset permissions. The default is to set permissions so that the user listed in /var/run/console.lock
has access to the devices, and to reset permissions if no such file exists.
FILES
/var/run/console.lock
/etc/security/console.perms
SEE ALSO pam_console(8)console.perms(5)BUGS
Let's hope not, but if you find any, please report them via the "Bug Track" link at http://bugzilla.redhat.com/bugzilla/
AUTHOR
Nalin Dahyabhai <nalin@redhat.com>, using code shamelessly stolen from parts of pam_console.
Red Hat 2001/3/6 pam_console_appy(8)
Check Out this Related Man Page
console.perms(5) System Administrator's Manual console.perms(5)NAME
console.perms - permissions control file for users at the system console
DESCRIPTION
/etc/security/console.perms determines the permissions that will be given to priviledged users of the console at login time, and the per-
missions to which to revert when the users log out. It is read by the pam_console module.
The format is:
<class>=space-separated list of words
login-regexp|<login-class> perm dev-glob|<dev-class>
revert-mode revert-owner[.revert-group]
The revert-mode, revert-owner, and revert-group fields are optional, and default to 0600, root, and root, respectively.
The words in a class definition are evaluated as globs if they refer to files, but as regular expressions if they apply to a console defi-
nition. Do not mix them.
Any line can be broken and continued on the next line by using a character as the last character on the line.
The login-class class and the login-regexp word are evaluated as regular expressions. The dev-class and the dev-glob word are evaluated as
shell-style globs. If a name given corresponds to a directory, and if it is a mount point listed in /etc/fstab, the device node associated
with the filesystem mounted at that point will be substituted in its place.
Classes are denoted by being contained in < angle bracket > characters; a lack of < angle brackets > indicates that the string is to be
taken literally as a login-regexp or a dev-glob, depending on its input position.
SEE ALSO pam_console(8)pam_console_apply(8)console.apps(5)AUTHOR
Michael K. Johnson <johnsonm@redhat.com>
Red Hat Software 1999/2/3 console.perms(5)
Hi all,
I am very new to UNIX and Shell scripting, I need to run a script to check for file's and directoires permissions and change the permissions if necessary.
I appreciate your help..
Thanks (7 Replies)
How can I change the default permissions that are assigned when I create a file? (By default the file has: -rw-r--r-- ..... I'd like it to be -rw-r-----
How can I change this default behavior? (8 Replies)
Need to know how to create self commands in unix.
I want to do some jobs in my unix machine regularly. i want to make a command kind of stuff. Please let me know how to create a command file in unix.
I crated a file in bin directory and used my logic there it works fine like command when i... (11 Replies)
Hi
I am trying to use shell script to display file permissions, and I can do it fine for the current user logged in, but now I want to view all file permissions for the Owner of the file, Group users and everyone, so it will look something like this:
-----------------READ WRITE EXECUTE
OWNER... (11 Replies)
Hi guys,
My current set up is I have a Laptop running redhat linux.
This acts as an SSH server, and i use it to console into the LOM-A port on my Sunfire V100 using minicom. The idea is that I can remotely access and test things out.
This works great, but I've just bought another V100 server... (15 Replies)
Newbie here, have looked using search engine and can find nothing revelant to my problem..
Using Linux
Here, I want to create a unix daemon (using C) that run to check user idle time, then if the idle time match the timeout, that console will be locked automatically
(user need to enter... (14 Replies)
Hi. I would like to know if there is any command that could list simple file permissions (like , R , RW..etc) for a given uid/userid and on a given file/dir. (9 Replies)
All,
I am currently using the below code to add a line /var/temp/'$input1'/permissions
Below is the shell ::
sed '
/Unix_command/ a\
unix: /var/temp/'$input1'/permissions' temp1.txt> temp2.txt
above will add the line below Unix_command word
unix:... (7 Replies)
Hi, i want to make a script that calculates the total size in bytes from files from a directory(first argument) and displays "Total :xxxxx", the second argument must indicate the minimum size of files processed and the third argument indicates the path to a file that will save the processed file... (21 Replies)
Hi experts,
I have RHEL6 system which I want to tighten by having strict permissions for some important files. Looks like, RHEL has below permissions by default:-
/etc/passwd:644:root:root
/etc/shadow:000:root:root
/etc/services:644:root:root
/etc/hosts.allow:644:root:root
I am... (10 Replies)
How to limit patchadd command to root user only?
I'm running a solaris 10 5/09 server, I have 2 users other than root. One being able to use the patchadd command and one is unable to do so. What I'm trying to do is to limit the patchadd command so that only root is able to run it. (7 Replies)
I have been volunteered by my boss to be the sysadmin for our production redhat server. He asked me to tighten the security to avoid mishaps like "rm -f *" that occured not long ago.
Right now, we have 53 users sudo-ing into the machine and it is an audit nightmare. I am wondering if it... (15 Replies)
Hi there!
I'm new to Unix and haven't done command line stuff since MS-Dos and Turbo Pascal (hah!),
I would love some help figuring out this basic command (what I assume is basic).
I'd like to add a User to the permissions of all files in a folder and all files in all subfolders, as well... (9 Replies)