0

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?

1
  • 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, 2010 at 12:56

2 Answers 2

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
0

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

man smbmount

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

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .