Sponsored Content
Top Forums Shell Programming and Scripting Management application user rights on the files in a Unix / Linux Post 302618869 by Corona688 on Wednesday 4th of April 2012 02:05:43 PM
Old 04-04-2012
Do not post classroom or homework problems in the main forums. Homework and coursework questions can only be posted in this forum under special homework rules.

Please review the rules, which you agreed to when you registered, if you have not already done so.

More-than-likely, posting homework in the main forums has resulting in a forum infraction. If you did not post homework, please explain the company you work for and the nature of the problem you are working on.

If you did post homework in the main forums, please review the guidelines for posting homework and repost.

Thank You.

The UNIX and Linux Forums.
 

10 More Discussions You Might Find Interesting

1. SuSE

UNIX - Linux NFS Rights need Help

Hello, I am running a Suse Linux server and I want to set up a NFS Server for a few Unix machines. For the root account at the unix client it works fine but it doesn't work for other users who have no root rights. I've used the no_root_squash and the rw option in the etc/export file. My folder... (7 Replies)
Discussion started by: Ald-Edv
7 Replies

2. HP-UX

User rights

I wan to create a user e.g. Tom. whenever a file is created by user Tom or FTP is done using user as Tom, the rights on the file should be 777 (by default). how can I achieve this. Please help. Its very urgent. (1 Reply)
Discussion started by: sharmavr
1 Replies

3. Linux

How to delete a user account in linux bases application.

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

4. UNIX and Linux Applications

How to delete a user account in linux bases application.

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.... (2 Replies)
Discussion started by: sureshcisco
2 Replies

5. UNIX for Dummies Questions & Answers

centralized unix user management

Does it exist centralized tools on unix for managing users of all servers (like windows AD) ? (1 Reply)
Discussion started by: astjen
1 Replies

6. SuSE

user management - LDAP and local files

I am implementing LDAP on Linux based system using openldap. My management objects to the idea that all individual users will authenticate against an LDAP server because “what if it is not available” Their suggestion is that we run in parallel a set of local configured users and a set of LDAP... (1 Reply)
Discussion started by: scampi
1 Replies

7. UNIX for Dummies Questions & Answers

Help Choosing Unix/Linux for Project management

I'm in the process of really comitting to learning a Unix or Linux OS/distro really well for career opportunities and to use as my main desktop OS. I've been mulling through the choices and I'm having a hard time. Maybe someone can help me. I'm not a noob and I have some FreeBSD and Slackware /... (1 Reply)
Discussion started by: lobill
1 Replies

8. Linux

User Management in linux

Hi All, I have to learn all the user management commend like adduser,useradd,chggrp... etc I would like to know the syntax or example. Please give me document or link. Thanks, Mani (1 Reply)
Discussion started by: Mani_apr08
1 Replies

9. Homework & Coursework Questions

user rights

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

10. UNIX for Dummies Questions & Answers

Guide me in the right direction to develop application for UNIX/Linux

Hi all, Am good in C & C++, i just joined as a fresher in a French IT company. In my own interest and love towards Linux and open source. i want to develop as much as applications for linux. i got the basic training on linux commands, and currently am working really hard to gain more... (11 Replies)
Discussion started by: mr_ganapathy
11 Replies
PAM_OPEN_SESSION(3)					     App. Programmers' Manual					       PAM_OPEN_SESSION(3)

NAME
pam_open/close_session - PAM session management SYNOPSIS
#include <security/pam_appl.h> int pam_open_session(pam_handle_t *pamh, int flags); int pam_close_session(pam_handle_t *pamh, int flags); DESCRIPTION
PAM provides management-hooks for the initialization and termination of a session. pam_open_session Use this function to signal that an authenticated user session has begun. It should be called only after the user is properly iden- tified and (where necessary) has been granted their credentials with pam_authenticate(3) and pam_setcred(3) respectively. Some types of functions associated with session initialization are logging for the purposes of system-audit and mounting directories (the user's home directory for example). These should not concern the application. It should be noted that the effective uid, geteuid(2), of the application should be of sufficient privilege to perform such tasks. pam_close_session Use this function to signal that a user session has terminated. In general this function may not need to be located in the same application as the initialization function, pam_open_session. Typically, this function will undo the actions of pam_open_session. That is, log audit information concerning the end of the user session or unmount the user's home directory. Apart from having sufficient privilege the details of the session termination should not concern the calling application. It is good programming practice, however, to cease acting on behalf of the user on returning from this call. RETURN VALUE
A successful return from the session management functions will be indicated with PAM_SUCCESS. The specific error indicating a failure to open or close a session is PAM_SESSION_ERR. In general other return values may be returned. They should be treated as indicating failure. ERRORS
May be translated to text with pam_strerror(3). CONFORMING TO
OSF-RFC 86.0, October 1995. BUGS
none known. SEE ALSO
pam_start(3), pam_authenticate(3), pam_setcred(3), pam_get_item(3), pam_strerror(3) and pam(3). Also, see the three Linux-PAM Guides, for System administrators, module developers, and application developers. Linux-PAM 0.55 1997 Jan 4 PAM_OPEN_SESSION(3)
All times are GMT -4. The time now is 12:10 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy