147
votes
7answers
439k views

How can I give write-access of a folder to all users in linux?

I installed apache2 on Ubuntu just now, and noticed that the /var/www folder is protected. I can just sudo everything but I would rather just give it write access.How can I do this?I tried sudo ...
36
votes
2answers
90k views

Allow specific user permission to read/write my folder

I have a folder /home/samantha/folder that I want to share with the user tom. He can read/write the folder. How do I do that?chown wouldn't do it because I still want to be able to be the owner of ...
15
votes
4answers
12k views

Linux Group Permissions not being enforced correctly.

I am running Ubuntu 10.04 server and am having some very counter-intuitive experiences with users/groups. For example:sudo touch test_file # create empty filesudo groupadd test ...
213
votes
11answers
131k views

Reload a Linux user's group assignments without logging out

When assigning a user's secondary group list using:# usermod -G <grouplist> <user>is it possible to force this group assignment to take effect without logging out all running sessions?...
46
votes
3answers
295k views

Chmod to allow read and write permissions for directory

I have created directories in root. I am looking for the chmod command to allow all users read and write permissions to a specific directory. I have done chmod 775 for a file but I need this for a ...
4
votes
1answer
16k views

What does NOEXEC flag mean when mounting directories on RHEL?

I am trying to understand the NOEXEC flag when mounting.I am having an execution issue within the /tmp directory on someone elses machine that I cannot access atm where the /tmp directory is mounted ...
217
votes
5answers
281k views

Permissions on private key in .ssh folder?

I changed my permissions in my .ssh folder and now when I use a piece of software that uses my private key, I have to type my password each time. What should my permissions be on my id_rsa file to ...
78
votes
4answers
129k views

How to make new file permission inherit from the parent directory?

I have a directory called data. Then I am running a script under the user id 'robot'. robot writes to the data directory and update files inside. The idea is data is open for both me and robot to ...
5
votes
4answers
56k views

Setting permissions for specific user and groups in Linux

How can I grant permission for files to a specific user or a specific group?We have three groups: "g12" ("u1" and "u2), "g34" and "g56".g12 - should only read the file.g34 - should write and read ...
4
votes
2answers
338 views

How can I list permissions of every component in a file path?

Sometimes it is necessary to determine on which directory in a path access rights are limited. Here is an example:$ ls /sys/kernel/debug/usb/devicesls: cannot access /sys/kernel/debug/usb/devices: ...
21
votes
5answers
39k views

Why can't I delete a file where I have group write permissions on?

I have a file with the following permissions:root:data, and chmod set to 775.My normal user, let's call him boby, is in the data group. Why can't I delete the file with the user boby?rwxrwxr-...
21
votes
2answers
10k views

Is there a way in Linux to update the user/group properties without having to login again?

After I edit /etc/group and I add a user to groups it didn't belong to, the user will not be able to use it's newly acquired privileges unless it starts a new session. Is there a command to refresh ...
5
votes
2answers
4k views

Automatically change ownership using WinSCP?

I saw several threads about having issues with unexpected file permissions after file upload. I tried their solutions with no luck, I have to raise the problem in my way. I run Nginx as nobody:...
5
votes
3answers
6k views

difference between chmod 777 and chmod 007

What is the difference between chmod 777 and chmod 007? if 'others' means everyone, doesn't that strongly suggest the truth that chmod 777=chmod 007?
2
votes
2answers
6k views

Ubuntu: Write to serial port: permission denied

I've connected a USB to Serial bridge dongle, and running dmesg | grep tty outputted the following:[ 0.000000] console [tty0] enabled[603199.380677] usb 2-2: cp210x converter now attached to ...

153050per page