Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Im using this fine piece of software for my mounts.
Works like a charm but when i dont want the folder unmounted after logging off. Because im running certain jobs wich require the mount.
i looked in the pam_mount.conf.xml but cant find it.
Anyone who can help me disabling the umount process after logoff?
too bad, that didnt work.
Got some problems now..
when i open a new shell and connect tru ssh to box it just mounts everything fine. When i close the shell everything gets unmounted.
so far so good. Now when some user is logged in and he does su <user> it still mounts the correct dirs for that users. but on log off nothing gets umnounted, here is the log:
Jun 15 15:17:11 lnxdev01 su[3340]: pam_mount(mount.c:366) information for mount:
Jun 15 15:17:11 lnxdev01 su[3340]: pam_mount(mount.c:367) ----------------------
Jun 15 15:17:11 lnxdev01 su[3340]: pam_mount(mount.c:368) (defined by globalconf)
Jun 15 15:17:11 lnxdev01 su[3340]: pam_mount(mount.c:369) user: xxx
Jun 15 15:17:11 lnxdev01 su[3340]: pam_mount(mount.c:370) server: xxx
Jun 15 15:17:11 lnxdev01 su[3340]: pam_mount(mount.c:371) volume: copydrive
Jun 15 15:17:11 lnxdev01 su[3340]: pam_mount(mount.c:372) mountpoint: /mnt/copydrive
Jun 15 15:17:11 lnxdev01 su[3340]: pam_mount(mount.c:373) options: dir_mode=0777,file_mode=0777,workgroup=NT_DOMAIN
Jun 15 15:17:11 lnxdev01 su[3340]: pam_mount(mount.c:374) fs_key_cipher:
Jun 15 15:17:11 lnxdev01 su[3340]: pam_mount(mount.c:375) fs_key_path:
Jun 15 15:17:11 lnxdev01 su[3340]: pam_mount(mount.c:376) use_fstab: 0
Jun 15 15:17:11 lnxdev01 su[3340]: pam_mount(mount.c:377) ----------------------
Jun 15 15:17:11 lnxdev01 su[3340]: pam_mount(misc.c:272) command: umount [/mnt/copydrive]
Jun 15 15:17:11 lnxdev01 su[3361]: pam_mount(misc.c:43) set_myuid<pre>: (uid=10002, euid=10002, gid=10002, egid=10002)
Jun 15 15:17:11 lnxdev01 su[3361]: pam_mount(misc.c:343) error setting uid to 0
Jun 15 15:17:11 lnxdev01 su[3340]: pam_mount(mount.c:90) umount errors:
Jun 15 15:17:11 lnxdev01 su[3340]: pam_mount(mount.c:93) umount: /mnt/copydrive is not in the fstab (and you are not root)
Jun 15 15:17:11 lnxdev01 su[3340]: pam_mount(mount.c:542) waiting for umount
Jun 15 15:17:11 lnxdev01 su[3340]: pam_mount(pam_mount.c:623) unmount of copydrive failed
As u can see it requires root to umount all of a sudden, no clue why.
anyone can help me with that?
Second problem: when i try logging in with a public key (NXClient/server it also doesnt work on login, is that fixable?
log:
Jun 16 08:11:27 lnxdev01 sshd[4415]: pam_mount(pam_mount.c:458) Entered pam_mount session stage
Jun 16 08:11:27 lnxdev01 sshd[4415]: pam_mount(pam_mount.c:479) back from global readconfig
Jun 16 08:11:27 lnxdev01 sshd[4415]: pam_mount(pam_mount.c:481) per-user configurations not allowed by pam_mount.conf.xml
Jun 16 08:11:27 lnxdev01 sshd[4415]: pam_mount(pam_mount.c:510) error trying to retrieve authtok from auth code
Jun 16 08:11:27 lnxdev01 sshd[4415]: pam_mount(pam_mount.c:194) enter read_password
Jun 16 08:11:27 lnxdev01 sshd[4415]: pam_mount(pam_mount.c:162) conv->conv(...): Conversation error
Jun 16 08:11:27 lnxdev01 sshd[4415]: pam_mount(pam_mount.c:513) error trying to read password
Jun 16 08:11:27 lnxdev01 sshd[4415]: pam_mount(pam_mount.c:546) done opening session (ret=7)
I get the conv->conv(...): Conversation error when using NXclient to login.
Bummer. There's pam_script that could possibly perform mounts on user login and might be persuaded to refrain from umounting if fuser/lsof shows there's still files open on logout?
Quote:
Originally Posted by Nielsrohrig
Jun 15 15:17:11 lnxdev01 su[3340]: pam_mount(misc.c:272) command: umount [/mnt/copydrive]
Jun 15 15:17:11 lnxdev01 su[3361]: pam_mount(misc.c:43) set_myuid<pre>: (uid=10002, euid=10002, gid=10002, egid=10002)
Jun 15 15:17:11 lnxdev01 su[3361]: pam_mount(misc.c:343) error setting uid to 0
Jun 15 15:17:11 lnxdev01 su[3340]: pam_mount(mount.c:90) umount errors:
Jun 15 15:17:11 lnxdev01 su[3340]: pam_mount(mount.c:93) umount: /mnt/copydrive is not in the fstab (and you are not root)
Jun 15 15:17:11 lnxdev01 su[3340]: pam_mount(mount.c:542) waiting for umount
Jun 15 15:17:11 lnxdev01 su[3340]: pam_mount(pam_mount.c:623) unmount of copydrive failed
As u can see it requires root to umount all of a sudden, no clue why.
Since you said it works like a charm you probably changed something. Change it back.
Bummer. There's pam_script that could possibly perform mounts on user login and might be persuaded to refrain from umounting if fuser/lsof shows there's still files open on logout?
Ill take a look at pam_script. thx
Since you said it works like a charm you probably changed something. Change it back.
I didnt change anyhting.. it never worked. looks like its a bug in pam_mount
I'm confused. In your OP you stated "Works like a charm".
I am sorry, im mixing up 2 different problems.
First i was talking about th umount wich aint working. but thats ok now.
Second problem is about the public key in combination with pam_mount wich it doesnt read and i get conversation errors. That follows in no mounts at startup..
First i was talking about th umount wich aint working. but thats ok now.
It could help others if you at least post what was wrong with it. Bonus points for posting how you fixed it.
Quote:
Originally Posted by Nielsrohrig
Second problem is about the public key in combination with pam_mount wich it doesnt read and i get conversation errors. That follows in no mounts at startup..
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.