Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Thanks so much for the help..i was out of town and I am going to try to do this today, I have a few questions: (please be kind enough to understand that I am a newbie and might ask some stupid questions:
- 1) I do not believe I have a “group name”, how can I be sure about that, if I do not have one, then what should I place there.
- 2) If I try to do multiple computers then it will be like: [share1] (or whatever name I call the share, [share2], etc…and in the comment I am assuming this is a comment about the share, ie comment = computer of room 1
- 3) I am assuming that /etc/rsyncd.secrets is hide since there is were we create the password, is this something similar to what I created (see below) and if weverything works well, then I can just delete from the one I did before the lines of the /etc/fstab and the file on /root/.credentials that hold the password..(please see below)…Thanks for the help..Rafael
- max connections = 2
- log file = /var/log/rsync.log
- timeout = 300
- [share]
- comment = private share
- path = /home/share
- read only = no
- list = yes
- uid = user name
- gid = user group
- auth users = user name
- secrets file = /etc/rsyncd.secrets
- Save the file as /etc/rsyncd.conf. You’ll see in the above file that I have create a directory in /home called share, to create the directory you can either use nautilus as root and create the directory, press Alt-F2 and type:
- gksu nautilus
- or create it in a terminal:
- sudo mkdir /home/share
- I’ve given the directory a permission of 700 so that only the creator and root can access the files, thus keeping them private from other users. I find the easiest way to set permissions is in a terminal To make sure you are the owner type:
- sudo chown -R user:user /home/share
- then change the permissions:
- sudo chmod -R 700 /home/share
- The next step is to create /etc/rsyncd.secrets for the user’s password. The user should be the same as above with password the one used to log into the Ubuntu server/computer.
- gksu gedit /etc/rsyncd.secrets
- the contents should be:
- user:password
- Next set the permissions for /etc/rsyncd.secrets:
- sudo chmod 600 /etc/rsyncd.secrets
- Finally start/restart xinetd
- sudo /etc/init.d/xinetd restart
- That’s all you need to do to set up the rsync-daemon on your Ubuntu system.
- Sudo nano /etc/fstab add this to the end line and create a memo like # automatic samba
- //192.168.1.101/serverbackup /home/rgotten/mnt cifs credentials=/root/.credentials,iocharset=utf8,file_mode=0777,dir_mode=0777 0 0
- //192.168.1.106/Charts /home/rgotten/charts.windows cifs credentials=/root/.credentials,iocharset=utf8,file_mode=0777,dir_mode=0777 0 0
- //192.168.1.105/Myplasticare\040Pictures /home/rgotten/FrontDesk.Windows cifs credentials=/root/.credentials,iocharset=utf8,file_mode=0777,dir_mode=0777 0 0
- Note \040 is a to mark the space between the two words at Myplasticare Pictures
- Remember to create a protected password:
- /root/.credentials is a text file that contains your smb username and password. To create the file, type:
- Code:
- sudo nano /root/.credentials
- and add the following text:
- Code:
- username=your_smb_username
- password=your_smb_password
- Now, make the file only readable by root:
- Code:
- sudo chmod 600 /root/.credentials
- 6. At this point, you can either reboot or reload your fstab:
- Code:
- sudo shutdown -r now
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement