|-----Original Message-----
|From: prakasam harish [mailto:prakasam_harish@yahoo.com]
|Is there any way to access the Microsoft DFS shares (domain based |\\domain.com\dfsroot) from OpenSUSE 11.0?? Please help me fixing this |issue.
Samba http://www.samba.org, is the premier DFS support for linux, actually it is better than windows itself, but it is mostly server-based services.
Any recent linux kernel supports cifs for mounting directly.
% lsmod | grep cifs
cifs 223748 1
First you have to assure you have shared out correctly with
password on all users, group, workgroup etc. Below is the very basics, there are lots of other options and features for ldap, acl, groups
userid, groupid etc.
smbclient: an extended ftp like service (in rpm smb-client)
% smbclient //192.168.2.28/raid mypw -Umbj
Domain=[DEMOLINUX] OS=[Unix] Server=[Samba 3.0.10-1.4E.11]
smb: \>
(below is my windowsxp laptop with a standard shared service)
smbclient //192.168.2.31/dist mypw -Umbj
Domain=[SECANALAP] OS=[Windows 5.1] Server=[Windows 2000 LAN Manager]
smb: \>
In Konqueror browser you can add as an url:
(rpm kdebase3-samba or kdebase4-samba?)
smb://192.168.2.31/dist
You can also mount your drives with the -t cifs option:
# mkdir /mnt/laptop-share
# mount -t cifs -o username=mbj,password=mypw //192.168.2.31/dist /mnt/laptop-share
# df -k /mnt/laptop-share
Filesystem 1K-blocks Used Available Use% Mounted on
//192.168.2.31/dist 58516760 54767796 3748964 94% /mnt/laptop-share
If you want to use /etc/fstab, you should use a credential file to keep the
logon password hidden, it can be whatever user you like
First create a credential file:
% cat > ~/.smbcred
username=<add your username here>
password=<add your password here>