Archives

All posts for the month January, 2012

So you have multiple users that need to read and write to certain files on the filesystem? This can be done with vsftpd quite easily. Let’s say you have users called ann, bill and carl and they need to manage files in /insp/localftp/testproject. Here’s the steps:

For vsftpd, change the umask for files created by FTP users. Open the vsftpd.conf file and edit the following.  Restart Vsftp daemon, please check ps before doing this as customers maybe using the host.  Wait for there stuff to finish, then restart.

This makes sure that new files are chmodded as 775 (full read/write for users/group, but only read for everyone else).

Next, create a new group. We will call ours “sharedweb”:

Now, put the users into that group by adding them in /etc/group:

Modify the users so that their primary group is sharedweb. If you forget this step, when they make new FTP files, they will be owned by each user’s primary group (sometimes named the same as the user on some systems) and the permissions will be completeld hosed.

Users should be able upload, delete, and edit each other’s files.

To create a self-signed SSL certificate, use the following command:

Once the key is created, you can change it to the PEM file or you can just leave it in .key/.crt format.

On our FTPS hosts, we just leave it in .key/.crt format..both work.

Just make sure your /etc/vsftpd.conf file reflects which format you choose to leave it in…and where the keys reside.  Normally we put them in /etc/ssl/vsftpd

Example for test I was doing on opustuerm01:


Copying one file and appending that file to a file on a remote host on one line.  

cat filename | ssh hostname “cat >> filename”
A simple example of this might be like your ssh keys, but even a simpler approach for that would by ssh-copy-id command, but just trying to demonstrate an example here..  =)  
cat ~/.ssh/id_dsa.pub | ssh remotehost “cat >> ~/.ssh/authorized_keys”

ATRIX – External Hard Reset
How do I perform an external “Hard Reset” sequence to manually reset my phone to factory settings?

If there are significant problems with the device or you are not able to perform a factory data reset through settings (locked out of handset, frozen screens), please use the following process to manually reset the phone:

WARNING: Factory Data Reset is a tool used to remove everything that was imported, added or installed on the device. When using this feature; information you have programmed in the handset, i.e. apps downloaded through the Market, Contacts, Email and Social network Accounts is deleted, however, nothing stored on the Internal Storage Memory or MicroSD (if available), i.e., pictures, music, videos, etc. will be affected.

(Steps on Froyo 2.2)

To perform an External Manual Reset of your handset to restore to factory settings, read instructions below and then perform.

  1. Power off the phone, press and hold volume down button, press power button.
  2. Screen will come up with “Fastboot”, press Vol down key to cycle through choices until you get “Android Recovery”, then press Vol up key
  3. Wait for the “triangle ! / Android” screen then go on to step 4
  4. Tap on bottom right corner of the screen (may take a few times). a menu will come up
  5. Tap on “wipe data/factory reset”, and tap OK. Another Confirmation screen will come. Tap Yes and OK
  6. After userdata is cleared, the “reboot system now” option will be highlighted by Default. Tap OK.
  7. Phone will reboot to initial setup MOTOBLUR screen.

Tip: Once you’ve reset your device, you can use your existing account to sync your contacts back to the phone.

 

ATRIX – Master Reset / Factory Data Reset
How do I reset my phone to factory settings?

Factory Data Reset is a tool used to remove everything that was imported, added or installed on the device. Keep in mind, when using this feature; everything is deleted. Nothing stored on the MicroSD or the internal phone storage will be affected unless you choose to erase it as well. To erase your data you’ll need to go to the SD card & phone storage under device settings. Your information is automatically backed up to the MOTOBLUR server. Your information will be restored when you login with your user name and a password.

Note: If there are significant problems with the device or you are not able to perform a factory data reset through settings (locked out of handset, frozen screens), please CLICK HERE for steps on performing an external hard reset to your device.

  1. Factory Data Reset
  • From the screen of your phone, open the Applications Tray by Tapping Apps Tray Button.  Or press the Menu button on the left from your screen.
  • Tap Settings.

          Settings

  • Scroll down and tap Privacy              (Tip: Checking the Back up my data and Automatic restore to preserve personal data)

          Privacy          Restore Options

  • Tap Factory Data Reset

          Factory Data Reset

  • Tap Reset Phone

          Reset Phone

Details Â