Setting file to be accessible only by one user

This forum is dedicated to basic help and support :

Ask here your questions about basic installation and usage of Mageia. For example you may post here all your questions about getting Mageia isos and installing it, configuring your printer, using your word processor etc.

Try to ask your questions in the right sub-forum with as much details as you can gather. the more precise the question will be, the more likely you are to get a useful answer

Setting file to be accessible only by one user

Postby mackowiakp » Apr 2nd, '15, 16:45

I have Linux Samba server and several clients connected to one. Several WIN based PC, most MAC laptops and 4-5 Linux based clients.

There is public share available for all clients. This share consist several files but one of them could be open only by one user at the same time.
I have to mention that not mounted by only one user at the same time but open for read or write.
Of course it is very simple in smb.conf to restrict amount of users mounting share at the same time but is any possibility to restrict access to single file?
I try to use

Code: Select all
chmod 0202 file


but after accessing share from dolphin filemanager such file was not visible at all. Is any other solution to resolve the problem?
Linux is like wigwam. No Windows, no Gates but Apache inside

WARNING ! The administrator has the right to refuse to install WINDOWS, invoking the conscience clause
mackowiakp
 
Posts: 660
Joined: May 23rd, '13, 07:32
Location: Gdynia, Poland

Re: Setting file to be accessible only by one user

Postby isadora » Apr 2nd, '15, 16:58

..........bird from paradise..........

Perfection is achieved, not when there is nothing more to add, but when there is nothing left to take away.
—Antoine de Saint-Exupéry
User avatar
isadora
 
Posts: 2766
Joined: Mar 25th, '11, 16:03
Location: Netherlands

Re: Setting file to be accessible only by one user

Postby mackowiakp » Apr 2nd, '15, 17:05

Yep ;-)
Linux is like wigwam. No Windows, no Gates but Apache inside

WARNING ! The administrator has the right to refuse to install WINDOWS, invoking the conscience clause
mackowiakp
 
Posts: 660
Joined: May 23rd, '13, 07:32
Location: Gdynia, Poland


Return to Basic support

Who is online

Users browsing this forum: No registered users and 1 guest