cannot open file to written
HI i am admin!
there is /work.. here if user1 shld create a file but it is showing cannot open file. user1 have to create a file. user2 can view that file but he cannot delete this file..how it is possible plz help |
check out the permission of the file
|
There are two general approaches. The first is using traditional user groups and permissions. This often sufficient for this sort of thing, but it is sometimes not fine-grained enough. The second approach is to use ACLs (access control lists) which give more flexibility.
With groups and ownership, you might approach it like this:
user1's umask should be set so that new files created by user1 will be readable by all users on the system. To check if this is OK, you can just ty it. If if doesn't work, you should edit user's shell init file (probably ~/.bashrc) and add the line: Code:
umask 0022 |
thks sir,
sir i want both user1 and user2 have to create files ..here only user1 is able to create a file.plz help me. |
Ah. That wasn't clear from the OP.
You have some choices, depending on other requirements. If you don't mind any user on the system creating files in the directory, you could make it like this:
You may wish to make it so ONLY these two users can make files in /your/directory. To do this, you need to create a new group. Lets name it "grp1" here for the sake of an example.
|
Thks sir , thks a lot! it is very use-ful to me!
|
All times are GMT -5. The time now is 08:28 PM. |