LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   Mounting Windows share w/o password (https://www.linuxquestions.org/questions/linux-general-1/mounting-windows-share-w-o-password-933075/)

bobbera 03-06-2012 03:06 PM

Mounting Windows share 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 ?

elfenlied 03-06-2012 05:55 PM

Look at the shares on the Windows side, are they the same? As in do they have the same share level permissions, file permissions. It could be that on one machine it's an open share and everyone is allowed to write to it but on the other the everyone built in group hasn't been added.

bobbera 03-07-2012 02:10 AM

From Windows side everything looks fine .
Mount w/o password is possible ONLY if user1 already has mount point done .The same Windows hare is being used .

elfenlied 03-07-2012 10:05 PM

You shouldn't re-post the same thread in another forum just because you haven't recieved a response.

I don't quite understand your last post, can you elaborate some more?

onebuck 03-08-2012 05:01 PM

Moderator response
 
Please post your thread in only one forum. Posting a single thread in the most relevant forum will make it easier for members to help you and will keep the discussion in one place. This thread is being closed because it is a duplicate of Mounting to Windows share with domain user w/o password !?


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