• Explore Vox
  • Culture
  • Entertainment
  • Life
  • Music
  • News & Politics
  • Technology
  • Join Vox
  • Take a Tour
  • Already a Member? Sign in
Adam

Adam’s blog

whats in a blog?

  • Adam’s Blog
  • Profile
  • Neighbors
  • Photos
  • More 
    • Audio
    • Videos
    • Books
    • Links
    • Collections

Read only user - using copSSH and Active Directory

  • Jun 17, 2009
  • Post a comment

Latest in my random technical achievements - setting up a read only user for my company's SFTP server,

I was quite foxed, as I first thought this was set in NTFS permissions (right click, Permissions, add user, etc) , then perhaps it was set in sshd-config..no, no no...!

Was quite hard to find it, but hopefully this post will make it easier for you.

1. Set up your user in Active Directory. eg. barney

2. Set up a group in Active Directory eg. ReadOnly

3. Assign your user to the new group

4. Go to Administrative Tools -> Domain Controller Security Policy

5. Expand the Local Policies, and click on 'User Rights Assignment'

6. Find the 'Allow log on locally' option, right click -> Properties

7. You should have a bunch of groups already set, as I did, but you need to click on 'Add User or Group...' eg. ReadOnly, click on 'Apply' / 'OK' etc.

8. Start the copSSH 'Activate a user' wizard, choose the user to activate (or just type their username in), and make sure the shell type is bash/sftponly. Create a suitable passkey as appropriate.

9. You should now be able to log in read only with this new user via WinSCP.

Post a comment Tags: active directory, scp, iis, cygwin, sftp, copssh

edie - the world's number one website for environmental professionals

  • Dec 7, 2007
  • Post a comment
edie - the world's number one website for environmental professionals
edie - the world's number one website for environmental professionals
http://www.edie.net/
Post a comment Tags: water, energy, recycling, environment, waste, pollution, climate change, contaminated land …

search and replace..

  • Dec 6, 2007
  • Post a comment

Faced with the not-so-inviting task of having to make 350 trivial changes (all identical) to pages on the site I work for, I'm looking for a bit of grep-and-sed, or maybe find-and-sed. ( I would use gawk, but our admin hasn't made that available..)

Basically, I want to pipe the output from grep as a list of files into sed.

I thought it would be something like :

$ grep * -R | sed -e 's/foo/bar/g'

Everything I've seen on sed and grep seems to work on the idea that you're only changing a few files, not recursing loads of sudirectories, which is what I want to do.

Post a comment Tags: find, grep, sed

About Me

Adam
United Kingdom
View my profile

Neighborhood

  • Team Vox
    Team Vox Updated: Dec 25, 2009

Explore friends, family, friends & family, or entire neighborhood.

View my neighbors

Tags

  • active directory
  • climate change
  • contaminated land
  • copssh
  • cygwin
  • energy
  • environment
  • find
  • grep
  • iis
  • pollution
  • recycling
  • scp
  • sed
  • sftp
  • waste
  • water

View my tags

Archives

  • June 2009 (1)
  • December 2007 (2)
  • 2009 (1)
  • 2007 (2)

Subscribe

  • Subscribe to a feed of these posts
  • Powered by Vox
  • Theme designed by Cisco
  • Use this theme

Links

  • edie - the world's number one website for environmental professionals

    edie - the world's number o...

    http://www.edie.net/

View more of my links

  • Home
  • Explore
  • Tour Vox
  • Start a Vox Blog
Already a member? Sign in

Back to top

View Vox in your language: English | Español | Français | 日本語

Brought to you by Six Apart, creators of Movable Type, Vox and TypePad.
Six Apart Services: Blogs | Free Blogs | Content Management | Advertising

Vox © 2003-2008 Six Apart, Ltd. All Rights Reserved.
Help | Learn More | Terms of Service | Privacy Policy | Copyright | Advertise | Get a Free Vox Blog

Loading…

Adding this item will make it viewable to everyone who has access to the group.

Adding this post, and any items in it, will make it viewable to everyone who has access to the group.

Create a link to a person
Search all of Vox
Your Neighborhood
People on Vox

(Select up to five users maximum)

Vox Login

You've been logged out, please sign in to Vox with your email and password to complete this action.

Email:
Password:
 
Embed a Widget
Widget Title: This is optional
Widget Code: Insert outside code here to share media, slideshows, etc. Get more info
OK Cancel

We allow most HTML/CSS, <object> and <embed> code

Processing...
Processing
Message
Confirm
Error
Remove this member