Home Messages Index
[Date Prev][Date Next][Thread Prev][Thread Next]
Author IndexDate IndexThread Index

Re: A question on security

Roy Schestowitz wrote:
__/ [scott] on Thursday 03 November 2005 13:48 \__


  I have set up a directory off the root with sub-directories and files
all having a group set as webx.  The permissions for all is also set as
775.  My id is also set in yast as being a member of webx. When I change
into the directory and then the sub-directory and then edit a file, vi
tells me that I will be trying to change a read-only file.  What am I
doing wrong?



Note to self: 775 = rwxrwxr-x

Have you made sure that the entire path to the file enables webx members to
write?

Let us assume:

/home/user/path/file_you_want_to_vi

Try:

chmod 775 -R /home/user/path/

or

chmod 775 -R /home/user

Also to consider:

chown webx file_you_want_to_vi

* Descend one level at the time, getting more distant from
file_you_want_to_vi

  o Make sure group ownership is okay

  o Make sure permissions are sufficiently lenient.

Hope it helps,

Roy

I've ensured that the base directory has the group ownership of webx all the way to the file and the file does have the group ownership of webx. The permissions are also set to 755. Still can't vi the file. Don't want to change the ownership to webx as this would prevent the owner of the file to loose control.

[Date Prev][Date Next][Thread Prev][Thread Next]
Author IndexDate IndexThread Index