LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 08-25-2008, 07:37 PM   #1
nitinpjairaj
LQ Newbie
 
Registered: Aug 2008
Posts: 1

Rep: Reputation: 0
Access Linux shared folder from Windows OS


Hi,

From wy web based Java application I need to copy a XML file from Windows OS to Linux OS in a shared folder.

For that we had used sambha and had mounted the shared directory in Linux OS and now we can access the folder by a user id guest with password guest.

Now from JSP web application how do I pass by default the user id and password so that when linux shared folder is acccessed it does not prompt for user id and password?

Thanks..
 
Old 08-26-2008, 11:54 AM   #2
CRC123
Member
 
Registered: Aug 2008
Distribution: opensuse, RHEL
Posts: 374
Blog Entries: 1

Rep: Reputation: 31
I have done a similar thing but have not tried to access it from a web app. Have you put an entry in /etc/fstab so that the windows partitions can be mounted automatically? If not, you can add something like this to your /etc/fstab file:

Code:
//<windowsServer>/<shareName> /<pathToMountPoint> cifs guest 0 0
After that, umount the partition from the location you currently have it, then run:

Code:
mount -a
This will cause all entries in /etc/fstab to be mounted if they are done correctly.

after that, you shouldn't need password anymore.
 
  


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
Shared folder on Linux feisty fawn but on windows asks for password? what_ever101 Linux - Networking 1 06-09-2007 12:47 AM
I can see SAMBA shared folder in XP but can't access it vishivishi Linux - Networking 6 08-30-2006 02:13 AM
Can Linux still access shared folder in a domain? Micro420 Linux - Networking 3 03-26-2006 07:00 AM
how to access a shared folder on a windows machine learnfast Linux - Newbie 11 03-12-2005 02:50 AM
Can Linux access WinXP's shared folder? davidas Linux - Newbie 5 04-17-2004 05:48 AM


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

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration