情况:
具有域的Windows Active,用户在登录windows计算机时,会自动将特定的专用网络驱动器映射到他们的计算机上。我想在Ubuntu桌面上实现同样的目标。
怎么做?
另一个问题是主目录不是私有的。如果我登录到user1,并以user2身份登录。我可以看到home/Likewise-open/user1和home/Likewise-open/user2,我可以从每个帐户访问这两个帐户。
发布于 2014-08-28 21:26:52
我知道这篇文章比污垢更古老,但为了防止其他人偶然发现它,我在http://klungvik.com/blog/2009/08/28/automount-windows-ad-shared-drives-in-linux/找到了第一部分的答案。
发布于 2021-07-25 23:55:49
这是之前提供的链接的拷贝粘贴,以防链接在某个时候失效.
同样地,打开插件到pam来验证linux机器上的Windows用户。pam-挂载将在登录时使用登录凭据挂载共享驱动器。samba不需要这样做,也不需要在文件中写下用户名和密码。
Install pam-mount.
sudo apt-get install libpam-mount
sudo mkdir -p /media/shared_folder_name
Set up shared drives to mount:
sudo gedit /etc/security/pam_mount.conf.xml
<!-- Volume definitions -->
<!-- <volume fstype="cifs" server="server ip adress" user="*" path="to_shared_folder" mountpoint="shared_folder_name" /> -->
Make gdm automatically mount shared folders at login:
sudo gedit /etc/pam.d/gdm
At the bottom of the file, add the following:
@include common-pammount重新启动并再次登录。共享驱动器应该可用。
https://askubuntu.com/questions/383297
复制相似问题