June 22, 2013

LINUX file sharing using samba

In order to share folders from linux, we use samba. Follow the instructions below to share files and folders in linux.

1. Login LINUX machine with root priviliges.

2. Write the following text in /etc/samba/smb.conf file,


[Shared_folder]
comment = My Home Directory
path = /u01/app/oracle/oracle/product/10.2.0/db10g1/rdbms/log
public = no
browseable = yes
writable = yes
public = yes
read only = no
valid users = ora10g

Note : you may change the path of the desired folder.



3. Create LINUX user ora10g with password "password" using the following commands,

useradd ora10g
passwd ora10g

4. Run the following commands in terminal,

chkconfig --level 345 smb on
cat /etc/passwd | mksmbpasswd.sh > /etc/samba/smbpasswd
chmod 600 /etc/samba/smbpasswd


5. Run the following command and set the "password" as password
smbpasswd ora10g

smbpasswd ora10g

6. Now login from another WINDOWS machine having username ora10g and password "password"

7. In the run prompt type //192.168.0.50

where 192.168.0.50 is the ip address of LINUX machine
Web Statistics