LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (https://www.linuxquestions.org/questions/linux-server-73/)
-   -   Mounting to Windows share with domain user w/o password !? (https://www.linuxquestions.org/questions/linux-server-73/mounting-to-windows-share-with-domain-user-w-o-password-933155/)

bobbera 03-07-2012 02:16 AM

Mounting to Windows share with domain user w/o password !?
 
Hi ,


I found weird mount.cifs behavior .

Having RHEL 5.6 . One Linix user successfully mount his Windows host share locally with the following command :


#sudo /bin/mount -t cifs //windows-host-name/share-name mount_point -o username=domain-name/user1

Since in our LAN Windows hostname reminds Windows account ( 8 characters) another user – say user2 after listing existing mounts may easily guess Windows account and as a result successfully mount user1’s Windows share without password !

As user2 :
##sudo /bin/mount -t cifs //windows-host-name/share-name mount_point -o username=domain-name/user1
#Password:

In both commands windows-host-name and share-name are the same

Any ideas ?

jefro 03-07-2012 10:10 PM

I'd need to know more about the authentication on the windows system. Generally one opens shares read write but protects them by ntfs permissions.

bobbera 03-08-2012 07:04 AM

The problem is not on Windows side - I may confirm that the same problem exists when I repeat this trick while mounting to Linux server when the last one is a Windows domain member .

Again , once some user mounted his Windows share anothe user may mount the same share w/o password : he knows windows host,share name and username already used since hostname more or less the same as user account in Windows .


All times are GMT -5. The time now is 10:53 AM.