Jump to content

Welcome to Geeks to Go - Register now for FREE

Geeks To Go is a helpful hub, where thousands of volunteer geeks quickly serve friendly answers and support. Check out the forums and get free advice from the experts. Register now to gain access to all of our features, it's FREE and only takes one minute. Once registered and logged in, you will be able to create topics, post replies to existing threads, give reputation to your fellow members, get your own private messenger, post status updates, manage your profile and so much more.

Create Account How it Works

Logonscript for linux?

  • Please log in to reply



    New Member

  • Member
  • Pip
  • 5 posts
Im a true blue nut! But I use Linux in the flavors of Ubuntu, Fedora, openSUSE and Linux Mint.

I have an Active Directory at home with a few clients that saves data to the local harddrive and then when the clients logoff it ships all documents stuff to the homefolder of the server!

Is this possible to accomplish in the Linux world now, with out Novell! :)

Like map some volumes or stuff in a loginscript to either a Windows Server or a Linux Server I would be glad.
  • 0





  • Technician
  • 1,645 posts
You can either mount a remote filesystem (ie. NFS), or you can transfer the files using something like rsync or rdist. You should be able to modify the window process such that when the display manager exits that it runs the transfer.
  • 0




  • Member
  • PipPipPipPipPip
  • 2,189 posts
Personally, I would go the rsync route (mostly because I have used it and know that it works). Rsync natively has the ability to send it's backup via scp over a ssh connection. In order for this to work properly.

You will need to generate a public and private key since a script can not give out a password for you. The format for sending a rysnc backup via ssh is like this if you were backing up your home directory:

#rsync -avrz --delete --delete-excluded --rsh="ssh -p $SSHPORT -i /home/$USER/.ssh/backup" $BACKUPDIR $[email protected]$IPADDRESS:/home/$USER/backup/

The method in which you execute this script on startup can be different for each distro (at least the method I use would only work in Ubuntu).
  • 0

Similar Topics

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users

As Featured On:

Microsoft Yahoo BBC MSN PC Magazine Washington Post HP