Hi Morten,
Thanks for your reply.
When I try to mount the DFS share from the Linux box mount.cifs, the following error occurs:
#mount -t cifs //172.29.1.11/dfsroot /mnt/dfs -o user=userid,pass=password,dom=DOM
mount error 66 = Object is remote
Refer to the mount.cifs(8) manual page (e.g.man mount.cifs)
#
Please let me know whether I'm missing out anything.
Note: I'm able to access to the DFS share from my Windows XP with the same login credentials.
regards,
Harish
----- Original Message ----
From: Morten Bjørnsvik
To: prakasam harish ; opensuse@opensuse.org
Sent: Wednesday, July 2, 2008 2:14:29 PM
Subject: RE: [opensuse] Need help accessing Microsoft Domain based DFS shares from OpenSUSE
|-----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
--
To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org
For additional commands, e-mail: opensuse+help@opensuse.org