The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
.
google unix.com



Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
FTP File Permission raybakh AIX 1 07-04-2006 08:11 AM
File Permission KhawHL UNIX for Advanced & Expert Users 2 05-24-2006 05:05 AM
The file permission ust UNIX for Dummies Questions & Answers 2 05-05-2005 09:18 AM
Log file - permission ajkiruba UNIX for Advanced & Expert Users 6 04-24-2002 12:42 PM
File Permission sanjay92 UNIX for Advanced & Expert Users 6 04-02-2002 07:19 AM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 05-09-2005
ust ust is offline
Registered User
  
 

Join Date: Feb 2005
Posts: 98
The file permission

there is a directory eg. /home/edp/ , all the files under this directory :
1. the file and directory owner is "user1" ,
2. the permission is 644

I want everyone hv permission to overwrite all files and write a new file to it , but I want the file owner and permssion keep unchange , could suggest what can I do ? thx


I hv one suggestion but not sure whether it will work , because I know the password of "user1" , is it OK to su to the userid "user1" before copy the file ? as I know , the similiar command like below can su to another user before rcp file , but I try it but it is fail to run at localhost , could suggest is it possible ? thx


Further to my suggestion , is it OK to su to the userid "user1" before copy the file ? as I know , the similiar command like below can su to another user before rcp file , but I try it but it is fail to run at localhost , could suggest is it possible ? thx


rcp file user1@remote_host:/home/edp
  #2 (permalink)  
Old 05-12-2005
Just Ice's Avatar
Just Ice Just Ice is offline Forum Advisor  
Lights on, brain off.
  
 

Join Date: Mar 2005
Location: in front of my computer
Posts: 637
chmod the affected directory to 1777 and then have a script that regularly changes the permissions of the files in it to "666" ...

for the "su-rcp" at localhost ... check .rhosts in user1's home directory to see if it has an entry for the localhost you're working out of ...
Closed Thread

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

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
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 09:07 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0