LinuxQuestions.org
Review your favorite Linux distribution.
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 10-17-2018, 02:34 AM   #1
1s440
Member
 
Registered: Mar 2018
Posts: 138

Rep: Reputation: Disabled
access


hello all,

please suggest how to mount the release \\asdf\bc as drive Z via samba as user such that user should access the share
 
Old 10-17-2018, 02:40 AM   #2
1s440
Member
 
Registered: Mar 2018
Posts: 138

Original Poster
Rep: Reputation: Disabled
mount -t cifs -ouser=user \\asdf\bc /media

umount /media

if i do these steps and map network drive from windows is that enough?
 
Old 10-17-2018, 04:50 AM   #3
pan64
LQ Guru
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 13,070

Rep: Reputation: 4132Reputation: 4132Reputation: 4132Reputation: 4132Reputation: 4132Reputation: 4132Reputation: 4132Reputation: 4132Reputation: 4132Reputation: 4132Reputation: 4132
would be nice to explain better:
do you want to share a drive on linux or windows? do you want to mount it on windows or linux?
There is no drive Z on linux.
How is your samba currently configured? ....

Also would be nice to give better title.

Last edited by pan64; 10-17-2018 at 04:54 AM.
 
Old 10-17-2018, 05:03 AM   #4
1s440
Member
 
Registered: Mar 2018
Posts: 138

Original Poster
Rep: Reputation: Disabled
Hi,

Wanted to mount it on windows as drive Z, already the share is configured.

I just need to add the user to the share
I think once i mount it later i can map network drive

though i set the smbuser and password it showing me as incorrect password.

Last edited by 1s440; 10-17-2018 at 05:57 AM.
 
Old 10-17-2018, 06:00 AM   #5
michaelk
Moderator
 
Registered: Aug 2002
Posts: 19,028

Rep: Reputation: 2890Reputation: 2890Reputation: 2890Reputation: 2890Reputation: 2890Reputation: 2890Reputation: 2890Reputation: 2890Reputation: 2890Reputation: 2890Reputation: 2890
Your posts are confusing.

What is asdf? What operating system is running on asdf?

What is operating is running on test?

Are you trying to mount asdf/share on test so that you can share it with a windows computer?
 
Old 10-17-2018, 07:21 AM   #6
berndbausch
Senior Member
 
Registered: Nov 2013
Location: Tokyo
Distribution: Redhat/Centos, Ubuntu, Raspbian, Fedora, Alpine, Cirros, OpenSuse/SLES
Posts: 3,446

Rep: Reputation: 902Reputation: 902Reputation: 902Reputation: 902Reputation: 902Reputation: 902Reputation: 902Reputation: 902
Quote:
Originally Posted by 1s440 View Post
mount -t cifs -ouser=user \\asdf\bc /media

umount /media

if i do these steps and map network drive from windows is that enough?
Can you explain the scenario a bit better?

Here is what I understand: asdf is a Linux server. On a Windows server, you want to mount a share named bc that is located on asdf. If my understanding is correct, you need to set up Samba on asdf and configure it so that is makes bc available to user user.

The code above doesn't do that. It first mounts a share named bc on a Linux or UNIX system (although you need to replace the backslashes with forward slashes as far as I know). The share is located on a server named asdf. It then immediately unmounts it.
 
Old 10-17-2018, 08:03 AM   #7
1s440
Member
 
Registered: Mar 2018
Posts: 138

Original Poster
Rep: Reputation: Disabled
I have a created a samba share and user for the share and then I mapped on windows using a network drive. It worked. Thanks a lot for your suggestions
 
  


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
no access to config on wired access, but modem/router and wired access point work littlejoe5 Linux - Networking 1 10-22-2014 02:40 PM
AoE: Block device access is fast, ext4 file access slow ultrazauberer Linux - Kernel 2 07-21-2013 06:09 PM
Unable to see shares on samba server - no authentication access desired (open access) neoelf Linux - Networking 1 06-14-2009 03:18 PM
How to access Access root(/) hard drive attached in Windows XP machine farrukhndm Linux - Software 2 07-29-2008 12:52 PM
WIFI WLAN / Cannot access internet but can access the router configuration page?SUSE thomas939 Linux - Wireless Networking 12 12-13-2005 10:28 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 02:23 AM.

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