0
Create a file in linux by user user1 and it should not be writable by user1 but user2 can able to read, write.
6 odpowiedzi
0
you can do it by using open API. please read abote mode_t of open API. Read a man page of open API you will get the idea.
int open(const char *pathname, int flags, mode_t mode);
0
𝕾𝖆𝖌𝖆𝕿𝖍𝖊𝕲𝖗𝖊𝖆𝖙 💯 is this possible in Linux environment
0
yes but you have to write c code. Do you want that in gui mode?
0
no
I want in linux shell
0
using basic Linux commands such as chmod and chown
0
create a file and use chmod like below:
chmod 754 myfile