How do I set file permissions using PAM?
by PreguntoYo from LinuxQuestions.org on (#6KR63)
Hello:
I'm using Slackware 15.0 stable, and I'm trying to set my file's permissions using PAM.
I want something like this:
foo.file: rw-rw----
Because all my files belong to my own personal group.
I've edited /etc/pam.d/system.auth adding this at the end:
Code:session [default=1 success=ignore] pam_succeed_if.so quiet uid eq 1000
session optional pam_umask.so umask=0007And... I didn't work. The idea here was that all my new files would be created rw-rw----, directories drw-rw---- and I'd set something more specific if needed be.
Can anyone help, please?.
I'm using Slackware 15.0 stable, and I'm trying to set my file's permissions using PAM.
I want something like this:
foo.file: rw-rw----
Because all my files belong to my own personal group.
I've edited /etc/pam.d/system.auth adding this at the end:
Code:session [default=1 success=ignore] pam_succeed_if.so quiet uid eq 1000
session optional pam_umask.so umask=0007And... I didn't work. The idea here was that all my new files would be created rw-rw----, directories drw-rw---- and I'd set something more specific if needed be.
Can anyone help, please?.