Share folders in Red Hat Enterprise Linux using Samba so that it can be accessed from a computer using Windows.
Packages required:
samba
samba-common
samba-client
samba-doc
Add a new user using useradd:
#useradd jethin
#passwd jethin
Create samba password for users using smbpasswd command:
#smbpasswd -a <username>
#smbpasswd -e <username>
eg:
#smbpasswd -a jethin
then give password.
#smbpasswd -e jethin
Add the following to the configuration file in /etc/samba/smb.conf
[Folders]
comment = linux shares
path = /
public = yes
browseable = yes
writable = yes
printable = no
valid users = jethin
hosts allow = 192.168.1.
Packages required:
samba
samba-common
samba-client
samba-doc
Add a new user using useradd:
#useradd jethin
#passwd jethin
Create samba password for users using smbpasswd command:
#smbpasswd -a <username>
#smbpasswd -e <username>
eg:
#smbpasswd -a jethin
then give password.
#smbpasswd -e jethin
Add the following to the configuration file in /etc/samba/smb.conf
[Folders]
comment = linux shares
path = /
public = yes
browseable = yes
writable = yes
printable = no
valid users = jethin
hosts allow = 192.168.1.
The above details can be edited according to your necessity.
Next Step:
Start the daemons:
smb,smbpasswd
Start or restart the services:
#service smb restart
To load samba on Startup:
#chkconfig smbpasswd on
Now you will be able to access all files in / from the windows computer.
Now you will be able to access all files in / from the windows computer.
Just type the ip of the linux system in Start-> run(in Windows system).
eg: \\192.168.1.112
Then type the username and samba password which you created.
Then type the username and samba password which you created.
No comments:
Post a Comment