LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   FOLDER permissions change automatically (https://www.linuxquestions.org/questions/linux-newbie-8/folder-permissions-change-automatically-254254/)

Echo Kilo 11-13-2004 01:39 AM

FOLDER permissions change automatically
 
Hello Folks:

I am using Mandrake 10. I am trying to creat a folder that is readable & writable by everyone.

When I log into a console as root and chmod 777, is works for about an hour and then the permissions change back automatically somehow.

If this is the chrontab doing this, should I edit the chrontab, and how do I do that?

Is there a better way to make a folder readable & writable by everyone?

Thanks!

jschiwal 11-13-2004 02:53 AM

There is a cron program called msec that checks for security problems and may reset the permissions of certain directories. One of the default rules is
for the /home/* directories which will reset the permissions to 0755.

You can access the gui setup for this program (drakperm) in the Mandrake Control Center. It's under 'Security -> Permissions' or directly /usr/sbin/drakperm.

What you will need to do is to add a custom rule.

Echo Kilo 11-14-2004 09:09 PM

Okay, I got that complete. Ther permission to RW is now allowable all the time.

However, now....I'm trying to make this share folder so that anyone can access (RW) AND change (RW) documents by others who place documents there.

So, when I place a document there via my windows box, another client should be able to access and edit it. Is there a whay to have any files saved in the PUBLIC SHARE FOLDER by anyone become editable by anyone automatically?

jschiwal 11-18-2004 05:50 AM

You need to check your /etc/smb.conf file. It may be sharing the folder read-only.

Echo Kilo 11-18-2004 12:20 PM

It's working for the most part. Anyone can read and write to the PUBLIC SHARE, but others cannot edit other peoples files.

In other words, the ownership is set to whoever saved the file there - which are by default, not editable by others. Is there a way to change ownership automatically to a globally editable file?

Is there an OWNERSHIP profile that is editable by anyone on the computer?

nglbrkr 08-21-2005 03:09 AM

you need to use
force group = groupname (maybe nogroup?)

in the share definition in smb.conf


All times are GMT -5. The time now is 01:52 AM.