LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Security
User Name
Password
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.

Notices


Reply
  Search this Thread
Old 10-14-2008, 09:34 AM   #1
slimm609
Member
 
Registered: May 2007
Location: Chas, SC
Distribution: slackware, gentoo, fedora, LFS, sidewinder G2, solaris, FreeBSD, RHEL, SUSE, Backtrack
Posts: 430

Rep: Reputation: 67
Password protect a file for write access


Does anyone know a way to password protect or encrpyt a file that would need a password for write access but not read access?

I need to make is readable without a password but still require one for write access. Don't think its possbile but wanted to ask
 
Old 10-14-2008, 10:20 AM   #2
monsm
Member
 
Registered: Feb 2005
Location: London, UK
Distribution: Gentoo
Posts: 568

Rep: Reputation: 37
Hmm, not sure. I know you can do that with openoffice. But I guess in terms of the file system you could set groups with read access and others with write access. far as I know users wouldn't be asked for password though, just given appropriate access depending on their rights.
There might be ways of doing it though.
 
Old 10-14-2008, 10:30 AM   #3
slimm609
Member
 
Registered: May 2007
Location: Chas, SC
Distribution: slackware, gentoo, fedora, LFS, sidewinder G2, solaris, FreeBSD, RHEL, SUSE, Backtrack
Posts: 430

Original Poster
Rep: Reputation: 67
The permissions solution wouldn't work. there are other users that would have the same permissions to the file but i dont want them to be able to write to it.
 
Old 10-14-2008, 10:33 AM   #4
Total-MAdMaN
Member
 
Registered: May 2008
Distribution: Gentoo
Posts: 306

Rep: Reputation: 34
Quote:
Originally Posted by slimm609 View Post
The permissions solution wouldn't work. there are other users that would have the same permissions to the file but i dont want them to be able to write to it.
What monsm was suggesting was creating a new group for the users that should have write access to the file.
 
Old 10-14-2008, 10:41 AM   #5
slimm609
Member
 
Registered: May 2007
Location: Chas, SC
Distribution: slackware, gentoo, fedora, LFS, sidewinder G2, solaris, FreeBSD, RHEL, SUSE, Backtrack
Posts: 430

Original Poster
Rep: Reputation: 67
Quote:
Originally Posted by Total-MAdMaN View Post
What monsm was suggesting was creating a new group for the users that should have write access to the file.
Root has to be the owner and a few people have sudo access to root. Thats why it wont work.
also i dont even want root to edit the file without the proper password

If there is a way to use encryption with 2 seperate keys. 1 for read-only and 1 for read-write that would work but i dont think there is cause of the way encryption works

Last edited by slimm609; 10-14-2008 at 10:51 AM.
 
  


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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
grip : no write access to write encoded file bidouilleur Linux - Software 5 10-09-2010 09:23 PM
Password protect internet access? BruceCadieux Linux - Security 1 08-16-2004 09:36 PM
how to protect a file with password bobgodwinx Linux - Security 7 07-20-2004 08:47 AM
Grip- "no write access to write encoded file" Alvis Linux - Software 4 01-06-2004 04:18 PM
Looking for a way to password protect a file within my Home folder BadKarma Linux - Security 2 12-26-2003 08:13 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Security

All times are GMT -5. The time now is 02:18 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