Folder permissions


 
Thread Tools Search this Thread
Operating Systems Linux Ubuntu Folder permissions
# 1  
Old 07-30-2012
Folder permissions

Hi Team,

I want to set permissions to one folder in such a way that the user can write files or create folder inside that but should not able to delete it.

Basically reason behind this is i am using Pidgin Messenger. There is a directory of logs in which, when user chat its store his logs. Users delete the logs from going in the directory. Our management need to track the logs, whether users are using it for official use OR using for personal chat.

Please tell me the way through i can set permissions OR any alternate way to do this.

Thanks & Regards,
Parag Nehete
# 2  
Old 07-30-2012
You will have to write some sort of script either in C, perl, or shell that changes the owner of each log file to root, when it is created - see the inotify man page on how to do this.

If you need help please post your exact requirements, with sample directory name(s) and sample file names.
# 3  
Old 07-30-2012
There is a folder in users home directory.

drwx------ .purple/logs/jabber/<parag>@jabber.<domain_name>/

Inside this there is folder of the user whom he chat. Say John is the user. Then at the first time when he chat it will create a folder like

drwx------ john@jabber.<domain_name>

The above folder contains html OR txt log files which has permissions -rw-r--r--

Every file & folder is owned by parag & has some default group.

When user chat with any person, the logs are generated. I need that log should generate, but users should not able to delete the files or folders inside .purple/logs/jabber/<parag>@jabber.<domain_name>/
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

General question about folder level permissions

How is the level of access on a particular folder determined? I have heard (its just hearsay so am not particularly sure of it) that the access a particular user/group has to a low level directory is also affected by the level of access granted to the user/group on its parent directories. e.g. ... (1 Reply)
Discussion started by: jawsnnn
1 Replies

2. Red Hat

Need to compare two folder / FS permissions

Hi, Need to compare two folders / File systems permissions & time stamps including sub folders and files. Kindly let me know if any commands available. Regards :: VM (1 Reply)
Discussion started by: novaothers
1 Replies

3. Shell Programming and Scripting

Folder permissions to delete

I am using the below command to delete files from directories and subdirectories find /test/abc/xyx -type f -mtime +7 -exec rm -f {} \; there are some subfolders in xyx for which i don't have permission to delete. Is there a way i can check the permission of the folder first and then delete... (4 Replies)
Discussion started by: ch33ry
4 Replies

4. Solaris

Unix file, folder permissions, security auditing tools.

I want to periodically check if ASCII password/config files on Unix have 400 or 600 access. Folders and files are owned by designated group and user. Folders and Files do not have world write access. Are there any tools/scripts available for this kind of auditing that I can use on Solaris? (7 Replies)
Discussion started by: kchinnam
7 Replies

5. UNIX for Dummies Questions & Answers

Permissions of the folder var/www

what should be the permissions of the folder var/www in my ubuntu ? I need it to be safe and at the same time I need ftp users to be able to edit it. I was wondering if I should create a group with all permissions and add ftp users to this group in unix. what's the standard way to do it ?... (4 Replies)
Discussion started by: aneuryzma
4 Replies

6. Shell Programming and Scripting

mkdir: copying a folder's permissions

Hi, I wanted to know how to create a folder using mkdir and then have it copy the permissions from another specified folder on the system. For example if I did this: mkdir /Volumes/USBSTICK/System How can I make it copy the permissions from the /System folder ? Thanks (4 Replies)
Discussion started by: pcwiz
4 Replies

7. Shell Programming and Scripting

i want to write a script to test the folder permissions

Hi All, I want a script to test folder permissions.( to alert me if a folder /abc/xyz does not have 775 permissions). i want to test /abc/xyz is having 775 permissions or not if not it has to alert me. Please help me ASAP Thanks in advance (4 Replies)
Discussion started by: rajesh212512
4 Replies

8. Shell Programming and Scripting

How to generate nested folder permissions

Hi expert, I would like to know how to generate file and folder ( including nested subfolder and files) permissions under oracle directory ? (8 Replies)
Discussion started by: skully
8 Replies

9. Windows & DOS: Issues & Discussions

folder permissions

I work for a big company and all the people within my unit share a common drive to save documents to. I am listed in the group(AMS group) that has access rights to folders within this drive. but i'm trying to restrict access to a confidential folder so that only I can access it. when I set the... (0 Replies)
Discussion started by: shed
0 Replies

10. UNIX for Dummies Questions & Answers

User home folder permissions catch-22, help!

Hi everyone. My objective is to configure a Solaris 10 box as follows: There will be many simultaneous users connecting to it, and each of those users would automatically get a home folder. For example, when I add user "Bob", the home folder would be /export/home/Bob And for Mary, it's... (3 Replies)
Discussion started by: EugeneG
3 Replies
Login or Register to Ask a Question