LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions
User Name
Password
Linux - Distributions This forum is for Distribution specific questions.
Red Hat, Slackware, Debian, Novell, LFS, Mandriva, Ubuntu, Fedora - the list goes on and on... Note: An (*) indicates there is no official participation from that distribution here at LQ.

Notices


Reply
  Search this Thread
Old 05-05-2005, 03:56 AM   #1
ust
Senior Member
 
Registered: Mar 2003
Location: fasdf
Distribution: Debian / Suse /RHEL
Posts: 1,130

Rep: Reputation: 31
The file permission


I have a file ( /tmp/file.txt ) , the file owner is user1:edp , the permission is 644 , I want everyone can overwrite the file but don't change the file owner and permssion , could suggest what can I do ? thx
 
Old 05-05-2005, 04:37 AM   #2
blue penguin
LQ Newbie
 
Registered: Dec 2004
Location: New Zealand
Distribution: Debian GNU/Linux (Etch) GRUB, Kubuntu 5.10 GRUB/GNU/Linux
Posts: 27

Rep: Reputation: 15
If you want everyone to be able to read and write to /tmp/file.txt just log in as the owner or as root and at the command prompt (the $ represents the command prompt) type
Code:
$cd /tmp
$chmod a+rw file.txt
All users (a) will now have read and write access (+rw) but only the file's owner and root will be able to change the permissions or owner of the file.

If you would like to learn more about file permissions and how to change them take a look at these two tutorials http://www.start-linux.com/articles/article_57.php http://www.start-linux.com/articles/article_135.php

I wish you fun with linux,
Jessica
 
  


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
File permission help! jorasmi Slackware 7 08-15-2005 10:07 PM
About the file permission ust Linux - Distributions 1 05-06-2005 03:05 AM
file permission jh31480 Linux - Newbie 2 01-25-2005 06:42 PM
file permission ust Linux - General 3 04-20-2004 06:14 AM
File Permission glock19 Linux - General 4 01-02-2002 07:40 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions

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