LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   mount command in Linux (https://www.linuxquestions.org/questions/linux-newbie-8/mount-command-in-linux-4175553023/)

tranphat 09-09-2015 07:29 AM

mount command in Linux
 
Hi all,

I have 1 problem with mount command. I would like to mount windows share folder (smb) to Linux server.
With this command, I can mount the folder successfully

mount -t cifs -o username=user,password=pass //server/web /smb_test

But as I notice, //server/web is shared full for Everyone to access, so, I think it does not need credentials.

I try this, but not success,
mount -t cifs //server/web /smb_test

Do I miss any parameters? I tried many method but cannot.

pan64 09-09-2015 07:48 AM

would be nice to give more information:
if ad (active dir) is in use, if windows domain in use, and if linux box joined to that domain. If another windows can mount it? ...

tranphat 09-09-2015 08:05 AM

Hello pan64,

- Yes, active directory is in use. But if I do not specify the domain in command, just user and password of domain, it still works properly.
- Linux is not joined domain.
- Yes, other Windows can map/mount it.

pan64 09-09-2015 08:08 AM

So probably that is the reason. Either your linux box should join (as I assume your other windows was joined) or you need to use user/pass.

tranphat 09-09-2015 09:51 PM

Hello,

But Windows shares folder for Everyone, I think non-joined domain Linux can access to it without problem.
Can you explain to me a little bit?

pan64 09-10-2015 01:40 AM

I think - but without knowing the full setup it is only a guess - Windows allows access only to trusted boxes, and your linux box is not trusted.

tranphat 09-11-2015 09:59 AM

something behind is very hard to understand. I can see 1 linux can mount easily cifs without password. Maybe in this case, the cifs server is also a linux box and acts as smb server, therefore it can authorize other linux box.

tranphat 09-14-2015 12:01 AM

I just got new info, that shared folder is not on Windows machine, it is a shared folder from EMC storage. So, in EMC or in other storage generally, do they have special authorization method like export command in nfs, that allow us to mount cifs without username and password?


All times are GMT -5. The time now is 06:24 PM.