Tuesday, December 26, 2006

Access windows file server from Linux

1. Use smbclient (a ftp-like client allows you put/get file)

smbclient -U Windows_Domain\\user //windows_file_server_name/dir

it prompts for your windows password

2. Mount the file server

mount -t cifs '//windows_file_server_name/dir' /mnt/mount_point -o username=Windows_Domain\\user,rw,iocharset=utf8

After typing your windows password, you can access the files on the windows server
cd /mnt/mount_point
ls -l

The above are tested in FC6

No comments: