Re: Sharing files between Linux and Windows
John G Heim <[email protected]>
| Newsgroups | gmane.linux.redhat.blinux.general |
|---|---|
| Message-ID | <[email protected]> |
It looks right to me assuming your user name is lshare. Surely, you don't usually log in as lshare, do you? You can create a user just for sharing files but you are going to run into a lot of permissions problems. It would be better just to use the user name you usually log in as. In fact, I always use the same user name and password in both linux and Windows to make it easier to map a share in Windows. On 07/07/2016 11:05 AM, John J. Boyer wrote: > Hi John, > > When I enter as root > > smbpasswd -a lshare > > it asks for a password, but then it gives the message "Failed to add > entry for user lshare". > > John > > On Wed, Jul 06, 2016 at 07:11:54PM -0500, John G. Heim wrote: >> I am pretty sure that on your linux machine, all you have to do is this: >> >> sudo apt-get install samba >> >> *sudo smbpasswd -a <username>* >> >> >> That's all I did on a fresh debian jessie machine and I was able to access >> my files in Win7. In Win7, press control+r to open a run dialog box. Type >> \\<hostname>\<username>. That will open a dialog box for mapping a share. >> If you make your linux user ID and password match your Win7 user ID and >> password, you don't even have to enter those things. If they don't match, >> there is a link titled something like "Log in with a different user name and >> password". Sorry, I'd have to reboot into Win7 again to get the exact title >> of the link. >> >> But seriously, those 2 commands were all I had to do to access my files from >> my Win7 machine. If you want to modify the files on your linux machine, you >> have to edit /etc/samba/smb.conf on the linux machine. But for copying the >> files to your Win7 machine, I really think that is all you have to do. >> >> >> On 07/06/2016 01:39 PM, John J. Boyer wrote: >>> I tried to install a samba server on Windows. However, the Geek Squad >>> agent who was helping said he didn't know enough to proceed. If I go to >>> the Samba website, what should I do? >>> >>> Thanks, >>> John >>> >>> On Wed, Jul 06, 2016 at 01:22:27PM -0400, Janina Sajka wrote: >>>> Ditto. I've also only every used Samba for this. >>>> >>>> Note, however, that once you have Samba set up, you can perfectly access >>>> the Windows folder from the Linux command line. Look at the man pages >>>> for the following: >>>> >>>> smbclient >>>> smbget >>>> >>>> Good luck! >>>> >>>> Janina >>>> >>>> John G Heim writes: >>>>> I have always done this with samba. I never found it particularly >>>>> difficult. You do have to read/follow the instructions. >>>>> >>>>> >>>>> >>>>> On 07/05/2016 01:36 PM, Mark Peveto wrote: >>>>>> I'll be interested in the answer to that question myself. I've had some tell me I need to use samba to do that...I've never been able to make it work. >>>>>> >>>>>> Mark Peveto >>>>>> Registered Linux user number 600552 >>>>>> Sent from F123 Visual using alpine 2.20.13 >>>>>> >>>>>> >>>>>> On Tue, 5 Jul 2016, John J. Boyer wrote: >>>>>> >>>>>>> I'm going to set up a folder called c:\share on my Windows machine. I >>>>>>> want to set up a device on my Linux machine which is connected with this >>>>>>> folder over my LAN. I know that this can be done, because I had >>>>>>> something similar at one time. However, i'm not certain how to do it >>>>>>> again. If I remember, it just took an entry in fstab and an entry in >>>>>>> /dev. Thanks. >>>>>>> >>>>>>> John >>>>>>> >>>>>>> -- >>>>>>> John J. Boyer; President, >>>>>>> AbilitiesSoft, Inc. >>>>>>> Email: [email protected] >>>>>>> Website: http://www.abilitiessoft.org >>>>>>> Status: 501(C)(3) Nonprofit >>>>>>> Location: Madison, Wisconsin USA >>>>>>> Mission: To develop softwares and provide STEM services for people with >>>>>>> disabilities which are available at no cost. >>>>>>> >>>>>>> _______________________________________________ >>>>>>> Blinux-list mailing list >>>>>>> [email protected] >>>>>>> https://www.redhat.com/mailman/listinfo/blinux-list >>>>>>> >>>>>> _______________________________________________ >>>>>> Blinux-list mailing list >>>>>> [email protected] >>>>>> https://www.redhat.com/mailman/listinfo/blinux-list >>>>> -- >>>>> -- >>>>> John G. Heim; [email protected]; sip://[email protected] >>>>> >>>>> _______________________________________________ >>>>> Blinux-list mailing list >>>>> [email protected] >>>>> https://www.redhat.com/mailman/listinfo/blinux-list >>>> -- >>>> >>>> Janina Sajka, Phone: +1.443.300.2200 >>>> sip:[email protected] >>>> Email: [email protected] >>>> >>>> Linux Foundation Fellow >>>> Executive Chair, Accessibility Workgroup: http://a11y.org >>>> >>>> The World Wide Web Consortium (W3C), Web Accessibility Initiative (WAI) >>>> Chair, Accessible Platform Architectures http://www.w3.org/wai/apa >>>> >>>> _______________________________________________ >>>> Blinux-list mailing list >>>> [email protected] >>>> https://www.redhat.com/mailman/listinfo/blinux-list >> _______________________________________________ >> Blinux-list mailing list >> [email protected] >> https://www.redhat.com/mailman/listinfo/blinux-list > -- -- John G. Heim; [email protected]; sip://[email protected]