Ubuntu Networking :: Rsync Over SSH - Embed Logon Credentials?
Jan 18, 2010
Is there a way to embed the user password in the following code?
Code:
rsync -r -n --progress --delete -u -l -e ssh 192.168.1.9:/Volumes/1TB_Internal/Music "/media/Storage/Libraries/My Music"
[code]...
View 4 Replies
ADVERTISEMENT
Jan 26, 2010
Our system is based on RH4 and is using pam_tally and faillog to record failed attempts and to lock users out after 5 attempts. We have a requirement to provide a normal (non-root) user logging onto our system, with information regarding the number of failed logon attempts made on their account before the current successful logon (similar to the functionality provided by HP Protect Tools on Windows). My first idea was to add 'faillog -u $USER' to the bashrc, however by the time the bashrc is run - the user has been successfully authenticated and the faillog has been reset back to zero.
View 5 Replies
View Related
Apr 20, 2010
I remember that some time ago I found a guide on the Ubuntu website about adding samba shares to mount at boot via /etc/fstab. The guide also mentioned using a credentials file to store the username and password.
However, the password was encrypted (in md5 I think) and it could not be read directly, but it still worked with fstab mount. If I remember correctly, the file contents were similar to this:
Code:
useraname = user
password = --md5
where was replaced by the encoded password. All was done in terminal. Recently I changed computers, and re-installed Ubuntu, but I forgot to save that file so I am not sure about the contents. I would like to know how to do this again, but I can't find the guide anymore. Does anyone know how to do this? Storing the password in plain text in file readable only by root is not acceptable because it can be read by someone mounting the drive from other operating system, and the share cannot be mounted/unmounted by regular users (which is possible with the md5 encrypted password).
View 1 Replies
View Related
Mar 29, 2011
When I use Nautilus to copy files to my NAS-disk they end up with owner "root" and I cannot edit them. If I copy them back to my PC they have owner <username> and are editable.
My fstab is: //10.0.0.20/Qmultimedia /media/Mmedia cifs credentials=/root/.smbcreds,directio,iocharset=utf8,noacl,noperm,rw, nobootwait 0 0
Of course I want my Mmedia mount on the NAS to behave like another disk on my PC; i.e. owner should be <username> and the files should be editable.
View 1 Replies
View Related
Sep 5, 2010
I'm working in France right now. And my internet access is through a router on a local network (LAN) of the hotel in which I stay. In order to have internet access I must type in my room number, my name, check the agreement and then click Enter.The problem is that the router cuts off internet every two hours.What I need is some script that does the followings:
- detect if there is no more internet connection (the LAN connection stays on)
- if there isn't to run the script that does all those things above.
What I've managed to do is the script that puts room number, name, check the agreement and click Enter using DejaClick, making it a bookmark and then open the firefox and run the script.The command that I've used in Terminal and which I think I can use in my script was:
[URL]
It works well. It's connecting to the net.What remains is the detection of the cut off of the internet connection.
Tried with Wicd, going to the properties of the wireless connection and then on Script. here I'm stucked.Don't know what to do anymore.It has the post-disconnection script option, but my LAN connection is not disconnecting, only the Internet access through this LAN is disconnecting.
View 1 Replies
View Related
Jan 21, 2011
I would happily do without having to logon to my wireless connection but, apparently, one can either have automatic logon at boot or automatic logon to the network - but not both.Anyway, of late my Ubuntu box has begun to request my network keyring password 2, 3 or 5 times (never 4, though). This was a real nuisance until I discovered that I can respond with my password on the first occasion and simply 'cancel' the subsequent requests.This is not critical but I would love to rid myself of the subsequent dialogue prompts.
View 5 Replies
View Related
May 25, 2010
Since upgrading to 10.04 my network connection asks for key/password every time I logon. Where/how can I make ubuntu remember my key/password?
View 2 Replies
View Related
Nov 4, 2009
I would like to mount a bunch of folders/shares when I start my machine up. I will be adding the mounts into my /etc/fstab folder BUT my WLAN0 only comes "up" and connects to my WAP AFTER logging in.
how I get it to start on PC boot instead of log in?
I think I need to disable network manager but I'm unfamiliar with the procedure in Fedora
View 2 Replies
View Related
Nov 10, 2010
Does anyone have a recommendation for embedding audio files into PDF files? I'd like to use this to provide feedback on student papers. Acrobat full version does this, but I'd like to stay in Ubuntu.
View 3 Replies
View Related
Jun 25, 2011
Is it possible to embed cover art in songs by any application in ubuntu? Preferably by banshee media player or any media player which shows cover art.
View 3 Replies
View Related
Jul 22, 2011
I'm trying to embed a video on my website, and It keeps asking me if I want to save it, instead of just playing it. How do I embed to play and not pop-up the "save" dialog?
Today I demonstrated a simple SSH dictionary attack for a friend. Lucky for you - I also recorded it. (I've made my pw ridiculous and re-secured the box so don't even try it now lol - it'll take 100's of years to crack brute-force).
Anyways, here's what you'll need:<ol><li><a href="http://nmap.org/" target="_blank">NMap</a></li>
<li><a href="http://www.foofus.net/~jmk/medusa/medusa.html"
[Code]....
That's what I have. It shows the box where the video should be - but doesn't play it, just asks to save. Not sure if it's something with my browser plugins... or my code on my page... ? Tried with FireFox and Rekonq - same results. Tried with many different embed codes as well - all same results.
View 1 Replies
View Related
Nov 17, 2010
Thought I'd post it here because it's more server related than desktop... I have a script that does:
[Code]....
This is used to sync my local development snapshot with the live web server. There has to be a more compact way of doing this? Can I combine some of the rsyncs? Can I make the rsync set or keep the user and group affiliations? Can I exclude .* yet include .htaccess?
View 6 Replies
View Related
Jan 7, 2011
When I run rsync --recursive --times --perms --links --delete --exclude-from='Documents/exclude.txt' ./ /media/myusb/
where Documents/exclude.txt is
- /Downloads/
- /Desktop/books/
the files in those directories are still copied onto my USB.
And...
I used fetchmail to download all my gmail emails. When I run rsync -ar --exclude-from='/home/xtheunknown0/Documents/exclude.txt' ./ /media/myusb/ I get the first image at url.
View 9 Replies
View Related
Feb 16, 2010
i have this blog, and i want to embed flash vids in it like videos. however, i want to do this from my apache2 web server, partly for bragging rights among my non-techie circle of friends, but mostly because i cant get videos to do what i want (which is private viewing of vids by non-..... members). any tips on how to do this?
View 6 Replies
View Related
Apr 29, 2010
I have a file server running Ubuntu Server. No monitor or input hooked up...I just ssh into it for maintanance. I use it to store all of my music and video files. I was watching Hulu at work today and thought it would be nice if I could somehow stream or play my files from my file server while I was at work.
I have apache set up so I can serve websites from it so I was thinking if I could some how select the file to play and it play it in an embedded player, that would be fine. I'd like it to play music and videos.
Is there any way of going about this? I have minimal HTML experience, but I have extensive C/C++ experience and server experience. So I'm comfortable using some open source libraries to accomplish this.
View 1 Replies
View Related
Apr 30, 2010
I have a film that has been split into 2 files, both of which has an associated srt subtitle file.
I want to embed the subtitle file permanently in the films, so I can subsequently combine the 2 video files (and so have continous playback).
I've tried playing about with Avidemux but no joy so far. Can anyone point me in the right direction?
View 3 Replies
View Related
Aug 6, 2010
Back in my Windows days I used Power Point but now that I am a Linux guy I use OpenOffice Impress instead. First, even in power point if I embedded sound files I had to make sure they were .wav files, and in this format they grew very large. I have been told that I can embed a .wav file in Impress, but there is a limit of 100k on the file size. Also there is a place where you can change this limitation, but I can't find where to change it. Does any one know where this setting is?
Next, let me tell you what I am trying to do and maybe someone has a better way of doing it. I have slides in my presentation where I display text and have sound files that read the text that is displayed. I have a couple of ways to do this, but both ways are just inserting sound files into the slide. All this does is point to the sound file and then plays it. This works find until I want to transfer it to another computer. To get the presentation to run on another computer I would have to re-insert the sound file so the pointer was right.
So this means I need to not only copy the presentation over but the sound files also. My main question: Is there a better way to do this? Even if I have to use a different program if Impress is unable to embed sound files. I believe that both Power Point and Impress both fall short in this area. I am trying to stay away from developing a program to do this. There must be something out here in the Linux world that would fit the bill?
View 8 Replies
View Related
Feb 25, 2011
Is it possible to embed audio file to an image in ubuntu?
It's possible in Windows 7, when saving just the image from an imagechan.
View 1 Replies
View Related
Apr 30, 2010
I downloaded grails [URL]... and installed it. Created a sample application hello world. It was running successfully. In browser [URL].. I was able to see grails running. Now comes the problem. To be able to always start the grails application running after boot I wrote a script in /etc/init.d/software_grails its contents are
[code]...
I have to open command prompt and go to /root/helloworld and then execute grails run-app. you dont have to write the name of application to run it. logging of boot messages is enabled /etc/default/bootlogd BOOTLOGD_ENABLE=Yes. then I opened /var/log/boot.
[code]...
But it does not work. If I am not wrong then above method will work ONLY WHEN some one Logs in not on boot time. Is there a way where I can embed grails in apache2 they [URL]... have not mentioned any thing about apache2 to deploy my applications.
View 2 Replies
View Related
Apr 12, 2011
I have a tiny shell script to rsync files between two servers and remove the source files.
This script works fine, when it has been initiated manually or even when the rsync command is executed on the command line.
But the same script doesn't work, when I try to automate it through crontab.
I am using 'abc' user to execute this rsync, instead of root, as root login to servers are restricted in all of our servers, by us.
As I mentioned earlier, manual execution works like charm!
When this rsync.sh is initiated through crontab, it runs the first command(chown abc.abc ...) perfectly without any issues. But the second line is not at all executed, and there is no log entry i can find at /mnt/xyz/folder/rsync.log.
View 6 Replies
View Related
Sep 18, 2009
I just tried to sync files from one server to another. After the sync process, I found the files are bigger than original ones.
I looked up the web and found someone mentions the rsync daemon. So I have to run the daemon on one server before I run the rsync?
The command I used is rsync --partial --progress -r source destination
View 1 Replies
View Related
May 14, 2010
I am trying to embed expect in my bash script to perform some tasks
USER="username"
PASS="password"
NAMES=`cat full_list`
for i in $NAMES
do
echo $i
[Code]....
The script initially reads a files containing a list of rpm's on each line and then spawns the rpm2ipc command which uploads the particular rpm to a repository. During this process it tries to enter the credentials, where it is failing.
View 3 Replies
View Related
Feb 20, 2010
sed -i 's/EXTRAVERSION =/EXTRAVERSION = -$(date +%D)/g' file would search in the file, file for the string: 'EXTRAVERSION =', and change every instance it finds to 'EXTRAVERSION = -02/20/2010'. BUT IT DOESN'T.It changes it to 'EXTRAVERSION = $(date +%D)', literally. I've tried single and double quotes in almost every possible configuration. Is there any way to tell sed that one desires the command output, not the literal text?
View 7 Replies
View Related
Jul 21, 2010
use rsync to cp such files and dirs under /var/www/html/mydir directory but these two files(/dir4/1.html /dir4/2.html) cant rsync to dest mechine.
rsync configure file,below...
View 2 Replies
View Related
Apr 2, 2010
I have installed Mozplugger and changed mozpluggerrc so it opens evince. However, it shows an embedded version in the tab that doesn't accept interactions and opens the version that can be interacted with in a new window. Does anyone know what may be causing this? I'm not very knowledgable with the specific commands in mozpluggerrc.
My current setup for PDF files is as follows:
View 2 Replies
View Related
Jun 30, 2011
Say I have arrays of constants code...
Is it possible to induce bash to interpret the ${tbl[1]} part to its actual value (1-6) when I reference those particular entries in the arrays?
Using this instruction to do so code...
View 9 Replies
View Related
Dec 8, 2010
I'm using Ubuntu 10.04 LTS server and Postgresql 8.4. I have a .sh script that is run by cron every other hour. That works fine. The .sh script includes an rsync command that copies a postgresql dump .tar file to a remote archive location via ssh. That fails when run by cron; I think because it is (quietly) asking for the remote user's password (and not getting it). I set up the public/private ssh key arrangement. The script succeeds when run manually as the same user that the cron job uses, and does not ask for the password. I am able to ssh to the remote server from the source server (using the same username) and not get the password prompt (both directions), so why doesn't rsync work? I even put a .pgpass file in the root of that user's directory with that user's password, and the user/password are identical on both servers.
I think the problem is rsync is not able to use the ssh key correctly. I tried adding this to my script but it didn't help.
Code:
Here is the rsync command embedding in the .sh script.
Code:
Here is the cron entry:
Code:
View 6 Replies
View Related
Feb 20, 2011
I have done the port forwarding to a production machine from our office machine it includes 3 hopes ie 3 machine in which I have done the portforwarding... but I am not able to rsync and directory or file even small fies with 10KB, but I am able to do do the rsync in to the same machine with 2 hopes
View 1 Replies
View Related
Nov 26, 2009
I was trying to rsync datas from one server to a remote server. There is a firewall between the two servers and the 22 port is open for the servers.
Attached the error that I got.
View 2 Replies
View Related
Jul 1, 2011
I want to backup windows PC's in my network to my ubuntu 11.04 pc, using rsync. Rsync is working, but I have to mount the pc's. A few details.
My server is named: server
The windows pc is named: \PC_OF_MARTIJN
The folder where the mount is coming is: /home/bastiaan/backup/mounts
Credentials are in /home/bastiaan/backup/credentials and they're called: martijn
So what I'm going to add to /etc/fstab is this:
Code:
//server \PC_OF_USER /home/bastiaan/backup/mounts/user cifs credentials=/home/bastiaan/credentials/user,iocharset=utf8,file_mode=0777,dir_mode=0777 0 0
Will this work?
View 4 Replies
View Related