[opensuse] Need help accessing Microsoft Domain based DFS shares from OpenSUSE
Hi Support Team, 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. Regards, Harish -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
|-----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>
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
|-----Original Message----- |From: Bogdan Cristea [mailto:cristeab@gmail.com] | |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? Hi Do not use the /media/ folder since it is managed by some remote device media-mounter. You have manually created the /media/win-shares directory ? This directory must exists. Try with the -v option to mount. Can you access the same share with smbclient? smbclient has the -d[1-10] option which gives you all the debug info you'll ever like and much more. I use it for debugging all the time when testing various samba-options. -- MortenB - Oslo - Norway -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On Wednesday 02 July 2008 13:10:05 you wrote:
|-----Original Message----- |From: Bogdan Cristea [mailto:cristeab@gmail.com] | |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?
Hi
Do not use the /media/ folder since it is managed by some remote device media-mounter.
You have manually created the /media/win-shares directory ? This directory must exists. Try with the -v option to mount.
Can you access the same share with smbclient? smbclient has the -d[1-10] option which gives you all the debug info you'll ever like and much more. I use it for debugging all the time when testing various samba-options.
-- MortenB - Oslo - Norway
Hi Thanks for the quick reply. I cannot mount using smbclient. Here is the output: smbclient -d3 //192.168.1.30/Bogdan/Soft pwd -Ubogdan lp_load: refreshing parameters Initialising global parameters params.c:pm_process() - Processing configuration file "/etc/samba/smb.conf" Processing section "[global]" added interface ip=192.168.1.22 bcast=192.168.1.255 nmask=255.255.255.0 Client started (version 3.0.26a-3-1478-SUSE-SL10.3). Connecting to 192.168.1.30 at port 445 Doing spnego session setup (blob length=16) server didn't supply a full spnego negprot Got challenge flags: Got NTLMSSP neg_flags=0x628a8215 NTLMSSP: Set final flags: Got NTLMSSP neg_flags=0x60088215 NTLMSSP Sign/Seal - Initialising with flags: Got NTLMSSP neg_flags=0x60088215 Domain=[MFDRVDEV002] OS=[Windows 5.1] Server=[Windows 2000 LAN Manager] tree connect failed: NT_STATUS_BAD_NETWORK_NAME -- Bogdan Cristea -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Bogdan Cristea wrote:
On Wednesday 02 July 2008 13:10:05 you wrote:
|-----Original Message----- |From: Bogdan Cristea [mailto:cristeab@gmail.com] | I cannot mount using smbclient. Here is the output:
Domain=[MFDRVDEV002] OS=[Windows 5.1] Server=[Windows 2000 LAN Manager] tree connect failed: NT_STATUS_BAD_NETWORK_NAME
This could indicate that this is a server that is AD only. When AD first came out there was a domain services emulation mode which I would expect to work with smbclient (fortunately never had any reason to try it :-) ). However, this mode was only there to enable domain services based people to migrate to AD, and I believe support is being phased out by M$. AFAIK smbclient/smbfs etc does not support full AD connectivity and is really only useful for legacy systems. I do think those who for one reason have these legacy windows setups are going to need to reconsider how they deal with them in future. Most of the reports I have seen indicate smbfs is regarded as buggy and there seem to be a consensus that rather than fix the bugs, building something without the bugs (i.e. cifs) is the way forward. Unfortunately, cifs is geared towards a later version of M$ networking which is not very compatible with earlier versions. (You know who to blame for this :-) ) In regard to DFS shares there does seem to be some indication support is not yet implemented in cifs if the following is anything to go by... http://episteme.arstechnica.com/eve/forums/a/tpc/f/96509133/m/789009920931 As M$ do seem to keep introducing new services within AD and changing the goalpost maybe a matrix indicating which tools work with which windows/samba versions would help clear some of the confusion I have seen in the last couple of days.
- -- ============================================================================== I have always wished that my computer would be as easy to use as my telephone. My wish has come true. I no longer know how to use my telephone. Bjarne Stroustrup ============================================================================== -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.5 (GNU/Linux) Comment: Using GnuPG with SUSE - http://enigmail.mozdev.org iD8DBQFIbI8masN0sSnLmgIRAi61AKCPnl0d+/GtqZ8Mjx6IBVP7Tg5vUgCfYeL/ 6BJiLWVce1YJz+j6seCYwQg= =1cIM -----END PGP SIGNATURE----- -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
participants (4)
-
Bogdan Cristea
-
G T Smith
-
Morten Bjørnsvik
-
prakasam harish