<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<atom:link href="https://dev1galaxy.org/extern.php?action=feed&amp;tid=5462&amp;type=rss" rel="self" type="application/rss+xml" />
		<title><![CDATA[Dev1 Galaxy Forum / How mount samba/cifs share as users home directory at users login?]]></title>
		<link>https://dev1galaxy.org/viewtopic.php?id=5462</link>
		<description><![CDATA[The most recent posts in How mount samba/cifs share as users home directory at users login?.]]></description>
		<lastBuildDate>Sun, 09 Apr 2023 11:11:52 +0000</lastBuildDate>
		<generator>FluxBB</generator>
		<item>
			<title><![CDATA[Re: How mount samba/cifs share as users home directory at users login?]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=41816#p41816</link>
			<description><![CDATA[<p>Yes, I stumpled over this on my naive first try and desktop users can even not save all of their,<br />settings, eben though it &quot;principially&quot; worked.<br />For samba, there is probably hope via ksmb in the future, I asked them on github. No time now to<br />ask on cifs mailing-list currently.<br />For kvm, where the most of my work happens, there is the same for virtiofs(d) and a request is open<br />to pass a full featured host filesystem - would apply for me too (using zfs).<br />I need to integrate additional software and will do this using chroot and/or containers.<br />The best bet for the moment, it looks, is to pass a blockdev to the guest and install zfs in the guest system.<br />I am on the road to test this and it basicall works. This would allow me to make snapshots and even replicate<br />them over the network. So I would be, at least, able to have history on a users homedir.<br />I&#039;ll look really to check your example, because it would allow me, to get rid of systemd.<br />With systemd, if you have configured, say, 10 users, you&#039;ll see their mounts, even they are not logged in .....<br />This is improper state management for users, in my eyes.</p>]]></description>
			<author><![CDATA[dummy@example.com (webman)]]></author>
			<pubDate>Sun, 09 Apr 2023 11:11:52 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=41816#p41816</guid>
		</item>
		<item>
			<title><![CDATA[Re: How mount samba/cifs share as users home directory at users login?]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=41761#p41761</link>
			<description><![CDATA[<p>I&#039;ve not tried mounting the whole of home, the faq in <br />/usr/share/doc/libpam-mount/faq.txt.gz&#160; says that </p><div class="quotebox"><blockquote><div><p>Big desktop environments as the aforementioned make use of locking,<br />symbolic links, and potentially local sockets (UNIX sockets).<br />If the filesystem and/or the remote server do not support these,<br />error messages or lockups may ensue.</p></div></blockquote></div><p>it also suggests that for KDE you can set it up to use /tmp for its special files.</p><p>I&#039;d have to guess you&#039;re seeing something like that but I don&#039;t know how you&#039;d work around any other problems.</p>]]></description>
			<author><![CDATA[dummy@example.com (ubik)]]></author>
			<pubDate>Tue, 04 Apr 2023 19:14:02 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=41761#p41761</guid>
		</item>
		<item>
			<title><![CDATA[Re: How mount samba/cifs share as users home directory at users login?]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=41721#p41721</link>
			<description><![CDATA[<p>Hi!</p><p>Thank you for your investigation and a big sorry for my late reply.<br />I am having too much trouble at the moment with something like<br />this.<br />I&#039;ve heart about pam-mount, but, due to the fact, that this moment<br />I stay on debian, I looked there(!), but missed it.<br />I just (this moment) checked for that package in the VM and it is really there.<br />But I must delay further, because at the moment, it&#039;s not clear if/how<br />I can use the whole users homedir on a share - there are hints to this,<br />but they do not work. I asked in the samba groub, but they directed<br />mit to &quot;cifs&quot; mailinglist and I have first to make that clear and understandable<br />completely. If this does not become possible, I&#039;ll install ZFS in the VM.<br />The whole thing is about snapshots (the samba share can be snapshotted<br />on the server).</p><p>Regards,<br />Manfred</p>]]></description>
			<author><![CDATA[dummy@example.com (webman)]]></author>
			<pubDate>Mon, 03 Apr 2023 05:38:40 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=41721#p41721</guid>
		</item>
		<item>
			<title><![CDATA[Re: How mount samba/cifs share as users home directory at users login?]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=40416#p40416</link>
			<description><![CDATA[<p>Install the libpam_mount and libpam-mount-bin packages then edit the primary configuration file:&#160; /etc/security/pam_mount.conf.xml</p><p>to add</p><div class="codebox"><pre><code>&lt;volume  
  fstype=&quot;cifs&quot;   
  server=&quot;192.168.26.1&quot;
  path=&quot;%(USER)&quot;
  mountpoint=&quot;~/Volumes/servername/&quot; 
  uid=&quot;1000-29999&quot;
/&gt;</code></pre></div><p>That&#039;s from my config, I make a a share of my server available in my home directory (under Volumes/servername/). You don&#039;t need to save your password anywhere (a bad idea!) as PAM does the right thing when you login to the desktop etc. it uses the same username &amp; password for the share and login as for the desktop and works for any normal user. It can also be made to work for remote logins over ssh. </p><p>You might need to check if replacing the whole of your home directory works without confusing anything else.</p>]]></description>
			<author><![CDATA[dummy@example.com (ubik)]]></author>
			<pubDate>Fri, 20 Jan 2023 22:08:50 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=40416#p40416</guid>
		</item>
		<item>
			<title><![CDATA[How mount samba/cifs share as users home directory at users login?]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=40135#p40135</link>
			<description><![CDATA[<p>Hello!</p><p>I have setup a devuan (chimaera) system using kvm.<br />I am planning to have the users home directory residing on a cifs share.<br />I try to mount is in fstab like this (where ncu9/2009 is the user):</p><div class="quotebox"><blockquote><div><p>//192.168.26.1/kvmabc-homes--ncu2&#160; /home/ncu9&#160; cifs _netdev,user,mfsymlinks,rw,exec,dev,suid,user_xattr,vers=1.0,username=mbu-smb1,password=123,iocharset=utf8,uid=2009,gid=100,dir_mode=0755,file_mode=0755&#160; 0 0</p></div></blockquote></div><p>It does not mount on users login.<br />If I am issuning a &quot;mount -a&quot; as root, it mounts and if the users logs in after this,<br />everything is ok at a first glance (debating with samba group about missing exec/dev options).</p><p>Any tip would be great.<br />I found hints about a pam.*mount module in the past, but there is nothing on<br />my devuan-vm and event in the repository.</p><p>Manfred</p>]]></description>
			<author><![CDATA[dummy@example.com (webman)]]></author>
			<pubDate>Tue, 10 Jan 2023 08:28:27 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=40135#p40135</guid>
		</item>
	</channel>
</rss>
