LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 01-10-2006, 09:48 AM   #1
hammer65
LQ Newbie
 
Registered: Jun 2005
Location: Midwest
Distribution: Fedora
Posts: 20

Rep: Reputation: 0
Trouble restricting account


I am having trouble restricting an account to a specific directory on a Madrake Linux machine for sftp access. I've done this before successfully but for some reason it isn't working this time.

In the directory that is to be the root directory for this user I have a bin directory, a lib directory and an etc directory. The following files are in each.

etc rwxr-xr-x owner: root group: root
passwd* rwxr----- owner: root group: daemon
group* rwxr----- owner: root group: daemon

bin rwxr-xr-x owner: root group: root
ls* --x--x--x owner: root group: bin
mkdir* --x--x--x owner: root group: bin
rmdir* --x--x--x owner: root group: bin
tar* --x--x--x owner: root group: bin

lib rwxr-xr-x owner: root group: root
ld-2.2.5.so* rwxr-xr-x owner root group: root
libc-2.2.5.so* rwxr-xr-x owner root group: root
libtermcap.so.2*rwxr-xr-x owner root group: root
ld-linux.so.2* rwxr-xr-x owner root group: root
libc.so.6* rwxr-xr-x owner root group: root

The passwd file looks like this

testUser:x:87:105::/var/www/htdocs/directoryofsite/downloads/./:/bin/ftponly

Am i missing anything? I created this account using useradd, usermod and passwd. It's a recreation of an account (different password) that got wiped out when the machine got hacked. I set the uid and gid using useradd but the passwd file existed with the old account. Still everything should be the same.

Last edited by hammer65; 01-10-2006 at 09:56 AM.
 
Old 01-12-2006, 11:58 AM   #2
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
It's a recreation of an account (different password) that got wiped out when the machine got hacked.
If you don't mind me asking, but this isn't that hacked box but then patched up (that is without repartitioning, reformatting and reinstalling from scratch), right?


I am having trouble restricting an account to a specific directory on a Madrake Linux machine for sftp access.
Any reason why you don't want to use Scponly or Rssh?
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
cyrus email account linux account nobu Linux - Enterprise 0 10-31-2005 03:16 AM
Jeremy's blog + reader account == too much trouble vharishankar LQ Suggestions & Feedback 8 08-03-2005 07:30 PM
restricting an email account to receive mails from local users only dm0nkz Linux - Security 2 09-03-2004 02:08 AM
trouble w/user account & ntfs mount Blow Linux - Hardware 11 03-25-2004 02:41 AM
Trouble accessing mounted filesystem from user account. DarkXtar Slackware 6 04-29-2003 10:27 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 03:02 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration