LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 09-09-2015, 07:29 AM   #1
tranphat
Member
 
Registered: Dec 2013
Posts: 67

Rep: Reputation: Disabled
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.
 
Old 09-09-2015, 07:48 AM   #2
pan64
LQ Guru
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 8,647

Rep: Reputation: 2501Reputation: 2501Reputation: 2501Reputation: 2501Reputation: 2501Reputation: 2501Reputation: 2501Reputation: 2501Reputation: 2501Reputation: 2501Reputation: 2501
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? ...
 
Old 09-09-2015, 08:05 AM   #3
tranphat
Member
 
Registered: Dec 2013
Posts: 67

Original Poster
Rep: Reputation: Disabled
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.
 
Old 09-09-2015, 08:08 AM   #4
pan64
LQ Guru
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 8,647

Rep: Reputation: 2501Reputation: 2501Reputation: 2501Reputation: 2501Reputation: 2501Reputation: 2501Reputation: 2501Reputation: 2501Reputation: 2501Reputation: 2501Reputation: 2501
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.
 
Old 09-09-2015, 09:51 PM   #5
tranphat
Member
 
Registered: Dec 2013
Posts: 67

Original Poster
Rep: Reputation: Disabled
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?
 
Old 09-10-2015, 01:40 AM   #6
pan64
LQ Guru
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 8,647

Rep: Reputation: 2501Reputation: 2501Reputation: 2501Reputation: 2501Reputation: 2501Reputation: 2501Reputation: 2501Reputation: 2501Reputation: 2501Reputation: 2501Reputation: 2501
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.
 
Old 09-11-2015, 09:59 AM   #7
tranphat
Member
 
Registered: Dec 2013
Posts: 67

Original Poster
Rep: Reputation: Disabled
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.
 
Old 09-14-2015, 12:01 AM   #8
tranphat
Member
 
Registered: Dec 2013
Posts: 67

Original Poster
Rep: Reputation: Disabled
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?
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How to mount any kind of filesystem with the Linux command line? embLinux Linux - Embedded & Single-board computer 6 01-22-2014 06:14 PM
[SOLVED] mount Iomega external hard drive on debian squeeze, how to use mount command Foxbat1155 Linux - Hardware 15 02-21-2012 04:55 PM
MOUNT Command in LINUX richardrex Linux - General 3 10-17-2003 06:14 AM


All times are GMT -5. The time now is 10:45 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration