Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

i'm newbie in linux, and i work with linux terminal to control another linux pc(client).

Beside that, i have some permition to access windows pc. They give me some IP address, user, and password.

but i have some problem during open some file use php. the owner of windows pc just give me a phisycal file location to open aome DB file. actually i need to open that DB from path.

how do i do to search path and file use teminal?

share|improve this question
    
WTF is "linux terminal"? Your question is very unclear. Also accessing databases using file i/o across a network is going to cause problems - particulalry for a web application –  symcbean Nov 10 '10 at 12:56

2 Answers 2

Something not entirely unlike

mkdir /mnt/foo
mount -t cifs -o /somepath/smbcred //123.45.6.7/share /mnt/foo
find /mnt/foo -name DB.php.or.whatever

where smbcred is a file that you create which contains

username=fred
password=jkgh%3ff-b
share|improve this answer

Sounds like you need to mount a windows share, check the smbmount man page:

man smbmount

share|improve this answer
    
how to use smb if i just have ip address, and user and password to access DB file? –  klox Nov 10 '10 at 4:48
    
upvoted RedGrittyBrick's answer, he has it laid out perfectly –  erimar77 Nov 10 '10 at 15:48

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.