LinuxQuestions.org
Review your favorite Linux distribution.
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 02-09-2006, 03:27 AM   #1
noir911
Member
 
Registered: Apr 2004
Posts: 682

Rep: Reputation: Disabled
read-only login


I need to give access to a test user to the system (through SSH). Does anyone know if I could give read-only access to that user in the system? The user will login as a normal user but will only have read-only permission to what she does in the system.

TIA.
 
Old 02-09-2006, 03:53 AM   #2
gilead
Senior Member
 
Registered: Dec 2005
Location: Brisbane, Australia
Distribution: Slackware64 14.0
Posts: 4,141

Rep: Reputation: 168Reputation: 168
I don't believe so, but...

A normal user only has write access to the files in their home directory and in places where files have been marked world writable (/tmp for example). Since /tmp normally has the sticky bit set so users can't delete each other's files this is usually safe. Is there something specific you're worried about the user doing apart from messing up their own home directory?
 
Old 02-09-2006, 04:03 AM   #3
satinet
Senior Member
 
Registered: Feb 2004
Location: England
Distribution: Slackware 14.2
Posts: 1,491

Rep: Reputation: 50
this might be something you are interested in:

http://www.howtoforge.com/chrooted_ssh_howto_debian

i was thinking of this myself.

although i guess it's a bit different to what you want to do.

anyway, you could make the user in a group that is unique to her (i.e.) she has no group access. Then she will only ever have 'other' file permissions.

depends on how tight your permissions are...
 
Old 02-10-2006, 02:20 AM   #4
noir911
Member
 
Registered: Apr 2004
Posts: 682

Original Poster
Rep: Reputation: Disabled
Thanks for the help guys. One of the users had rights to start a deamon with a special account. I just told him not to login with that account and added another account for him. And that's working thus far.

Haven't done the hard yard to get chroot-ssh but that's part of a bigger plan
 
  


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
Mounted read-write Fat32 partition suddenly becomes read-only?? hohead Linux - General 8 04-05-2007 12:17 PM
mozzla problems-can not read files online, can not read attachments sarajevo Linux - Software 1 09-20-2005 06:58 PM
Accounts with KDE/GNOME login issues (unable to read configs) hexbox Linux - Networking 1 01-31-2005 03:19 PM
Example share in smb.conf doesn't work - read/write vs read only kleptophobiac Linux - Networking 0 09-01-2004 07:14 PM
kernel panic unable to mount root (yes ive read/read other posts) dmx9595 Linux - General 4 01-17-2004 05:07 AM

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

All times are GMT -5. The time now is 02:24 PM.

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