On Wednesday 02 July 2008 11:44:29 Morten Bjørnsvik wrote:
|-----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>
% chmod 600 ~/.smbcred # mount -t cifs -o credentials=/home/mbj/.smbcred //192.168.2.31/dist /mnt/laptop-share
This is especially for adding permanent mounts in /etc/fstab
-- MortenB - Oslo - Norway
I have seem by chance your post when I was trying to access an ISO file from a Windows machine to Linux. Even if I am able to browse the shared folders with Konqueror, when I try to mount in Linux a shared folder: mount -t cifs -o username=un,password=pw //192.168.1.30/Soft/ /media/win-shares/ the win-shares folder is not accessible: d????????? ? ? ? ? ? win-shares Could you or someone advise please? -- Bogdan Cristea -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org