Short for "file system permissions" - access control based on user, group, or global access.

learn more… | top users | synonyms (2)

90
votes
9answers
110k views

How do I use 'chmod' on an NTFS (or FAT32) partition?

I have a script that I need to execute on an NTFS partition. The script's permission is set to 600. I attempted to modify the permissions by running chmod 755 script.sh, which doesn't report a ...
40
votes
3answers
33k views

How do I add myself back as a sudo user?

I clean-installed Ubuntu 11.10 today, and then installed VirtualBox. This required me to add myself to the vboxusers group, and since 11.10 seems to no longer have a graphical app to add users to a ...
32
votes
9answers
137k views

How do I get permissions to edit system configuration files?

I can't seem to edit and save config files in the root system (eg: /etc/dhcp/dhcpd.config); it just says "permission denied" or the save option is blocked in the text editor. I'm pretty sure I'm a ...
101
votes
7answers
183k views

Whats the simplest way to edit and add files to “/var/www”?

Having installed the web server is there a simple way to set a user able to use the graphic interface to copy files and directories to the local web server /var/www I gave myself administrative ...
24
votes
5answers
13k views

What if I accidentally run command “chmod -R” on system directories (/, /etc, …)

I accidently ran sudo chmod 755 -R / instead of sudo chmod 755 -R ./ I stopped it after few seconds, but now there is some problems such as sudo: must be setuid root How can I revert ...
130
votes
7answers
210k views

How do I change my username?

Some time ago when I installed Ubuntu I chose a rather stupid username for my account that I do not want to use anymore. How do I change this (including the name of my home directory, and the name ...
11
votes
7answers
21k views

How do I set up a folder so that anything created in it inherits permissions?

I have a /data folder (actually a partition) for all data that should be accessible by all users (in this case family members). We all have individual user accounts and are often all logged in at any ...
22
votes
6answers
4k views

Under what license is Ubuntu? Can it be legally modified and distributed?

What license does Ubuntu fall into (GPL, MIT, a mix)? Would it be legal to modify it and redistribute my modified version?
198
votes
5answers
1.0m views

Change folder permissions and ownership

I would like the user to have full rights on this folder (as well as all sub-directories and files in it): ~/.blabla currently owned by root. I have found numerous posts (in this forum and ...
21
votes
2answers
9k views

How do file permissions work?

Can you explain briefly the main concepts and command line tools used to manage file permissions?
50
votes
2answers
29k views

Why shouldn't /var/www have chmod 777

When developing a page on a localhost, I sometimes get a "Permission denied" error which I can solve by running chmod -R 777 /var/www. However, people are telling me that this is a bad idea for ...
83
votes
4answers
138k views

What is “umask” and how does it work?

I believe that umask is something that controls file permissions, but do not fully understand it. After running umask 0644 in a terminal, I cannot read the files I create with the command-line text ...
9
votes
4answers
26k views

How to fix sudo after “chmod -R 777 /usr/bin”?

I enetered chmod -R 777 /usr/bin and now sudo is not working. It is giving error that sudo must be setuid root. On looking via Google, some advice said to run chown root:root /usr/bin/sudo chmod ...
64
votes
4answers
72k views

How do I run wireshark, with root-privileges?

A standard installation of Wireshark doesn't give the program permission to access the network interface. I suppose I have to run the program with sudo, but do not know how to add it to the icon - ...
12
votes
3answers
10k views

.exe file permission fail

I'm trying to run a exe file that is located on my Vista partition, when I browse to the file and try to change the file to run as executable the tick box unticks itself right after i tick it, i tried ...
3
votes
1answer
3k views

How can I share a directory with an another user?

I don't want the shared folder to be accessible by anyone on the system, I want it to be accessible just to a restricted set of users. How to I do that?
18
votes
1answer
53k views

Correct way of mounting a Windows share

I mounted a Windows share to my Ubuntu 11.10 system via adding the following line to the /etc/fstab: //serveraddr/sharedfolder /mnt/foldername/ smbfs credentials=/home/myname/.smbpasswd 0 0 using ...
5
votes
1answer
43k views

external hard disk READ ONLY

I have got an external hard disk TOSHIBA 1TB USB 3, the permission is always READ ONLY. fdisk -l (output) : Disk /dev/sda: 500.1 GB, 500107862016 bytes 255 heads, 63 sectors/track, 60801 cylinders, ...
12
votes
3answers
10k views

Accessing files in a directory without x-permission?

I am having a bit of trouble understanding what the execute permission means for directories. Do I understand it correctly that anything in a directory for which a user does not have x-rights is ...
3
votes
1answer
12k views

How to change permissions to the other drives in a hard disk?

I have dual booted with XP and Ubuntu 11.04. Later I formatted Ubuntu partition with 11.10 now I have three drives one for XP other for UBUNTU and other for data when I log in into UBUNTU I am unable ...
0
votes
1answer
340 views

Failed to SFTP connection

I want to configure user ftpuser to sftp for an existing apache owned directory /var/www/webiste I added it as new user and made /var/www/webiste its home directory, useradd -md /var/www/website -s /...
9
votes
1answer
22k views

How do I set executable permissions on a removable drive?

I'm using Ubuntu 10.10 and using a usb drive but I'm finding that I can't chmod any programs on the drive to +x. It is being auto-mounted by Gnome (using udev, I think?) so I imagine the problem is a ...
22
votes
4answers
60k views

Change owner of internal hard drive partition from root to user

I have a number of drives internal and external. Some are partitioned. Most mount automatically at boot (all did at one point). One partition is owned by root and therefore does not mount ...
10
votes
3answers
61k views

“You are not the owner…” message when trying to access folder

In the properties menu of this folder the permission is set to "root" user and group, it shows the message "you are not the owner, so you cannot change these permissions." I am indeed the owner and ...
9
votes
1answer
4k views

How to get permissions to execute programs from NTFS hard drive?

I have this problem: I'm used to compile and run .c files with CodeBlocks. If I do that from my Desktop (ext4 partition) it works without problems, but doing this from my secondary hard drive (NTFS ...
6
votes
2answers
6k views

Ownership of .Xauthority transferred to root

Somehow, while playing around with LightDM and Webkit Greeter, the ownership of the .Xauthority file in my home dir was given to the root user and I couldn't login because I hadn't the privilegues to ...
30
votes
6answers
182k views

How do I correctly mount a NTFS partition in /etc/fstab?

After a nasty episode (my second, you'd think I'd learn) caused by unsupervised automated podcast downloads filling my entire partition, I've finally moved just ~/Music to its own partition. The ...
55
votes
3answers
28k views

What is the difference between the 'sudo' and 'admin' group?

I noticed that two groups are granted similar-looking permissions in /etc/sudoers: # Members of the admin group may gain root privileges %admin ALL=(ALL) ALL # Allow members of group sudo to execute ...
5
votes
1answer
3k views

What does this startup dialog message mean “Could not update ICEauthority file”

I restarted Ubuntu a few minutes ago, and got a warning dialog early in the bootup process (before the desktop was up)... It wasn't just a scrolling message which flitted off the screen of its own ...
3
votes
2answers
1k views

General Rules for dealing with File Permissions

I have run into a ton of file permission issues in Ubuntu, from not having permission to delete a file, change the contents of a while, and so on. I was wondering if some of you Ubuntu experts could ...
24
votes
4answers
93k views

Permissions issue: how can Apache access files in my Home directory?

I know file permissions have been covered on here before, but im struggling to get my head around the concept for my scenario. I created the files on an old ubuntu installation. Ive copied the ...
19
votes
5answers
17k views

Why can other users see the files in my home folder?

I just added a new, underprivileged "desktop user," and I was surprised to discover that it can see the files in my home folder. What is the rational for setting up such lax permissions?
15
votes
4answers
39k views

Mount NTFS partition at startup, with non-root user as owner

I'm currently mounting an NTFS partition at startup using the following line in /etc/fstab: /dev/sda3 /media/data ntfs nls=iso8859-1,umask=000 To my Ubuntu 11.10 installation, ...
9
votes
4answers
73k views

How do I install MATLAB R2012a?

I have downloaded MATLAB R2012a for Unix platform and i want to install it on my ubuntu 11.10. To install i try this command: /<matlab_installation_file_directory>/install and it says: ...
13
votes
6answers
33k views

How to mount HFS+ drive and ignore permissions

I installed Ubuntu and Windows on my MacBook and Ubuntu is my primary OS; however, all of my media stays on my OSX partition. I want to be able to access it (at least my OSX user's home folder) from ...
19
votes
5answers
70k views

Changing permissions on serial port

I'm using the Arduino IDE in Ubuntu, and am having issues with the serial port. It has worked in the past, but for reasons that may be unnecesary, I felt the need to change the ownership of some of ...
9
votes
4answers
71k views

permission denied for root@localhost for ssh connection

I just installed Ubuntu 14.04 and LAMP on that. Then, I wanted to configure my server, so tried out This tutorial. When I give the command: ssh root@localhost I get : Permission denied, please try ...
6
votes
2answers
8k views

How can I restrict program access to other users?

I'm setting up a new user account, and I want to allow access to only certain programs for just that account. How would I go around doing that?
2
votes
1answer
3k views

First full backup on USB: Permission denied

I am new to Ubuntu 13.04. I am trying to do a full backup to my USB and I have used GParted to create a partition on my USB and formatted it as ext4. It still has permission denied errors. I get ...
6
votes
1answer
821 views

What are the risks of running Nautilus as root?

Whenever I try to access files outside my home directory I get a permission error. People keep recommending running Nautilus as root by running the following commands in a terminal: sudo -i nautilus ...
169
votes
5answers
139k views

How can I get octal file permissions from command line?

There is a chmod command to set file permissions, but can I get file permissions in octal mode (such as 755) from the command line?
12
votes
3answers
10k views

Why do question mark characters appear when changing the permissions of directory?

I am trying to change permissions of a folder temporarily whose initial permissions are user@ubuntu:/var/log$ ls -l squid* squid3: total 4 -rw-r----- 1 proxy proxy 0 Jan 16 14:43 access.log -rw-r-...
12
votes
3answers
19k views

Why does Ubuntu refuse to execute files from an NTFS partition?

I mount an NTFS partition (where I've got some Linux binaries and scripts alongside with Win32 and data files) with the following fstab line: /dev/sda5 /mnt/dat ntfs-3g rw,dev,exec,auto,async,users,...
4
votes
1answer
1k views

How do I set up local Joomla sites for web developing?

I plan to develop multiple websites using Joomla. I'm using Ubuntu Desktop, and only need to access the sites and configuration files locally, while logged in to my user account. Previously I tried ...
4
votes
1answer
13k views

What is meaning of 755 permissions in Samba Share

I am experimenting with Samba. I have a RAID drive mounted on /mnt/raiddrives, and I want to share it on my network giving everyone full access to it. The Ubuntu guide says to do something like below ...
2
votes
3answers
13k views

sudo: /var/lib/sudo/navneet writable by non-owner (040777), should be mode 0700

This error occurs whenever I try to work with sudo. I changed the permissions of /var/ folder to 777 and I think this causes the error. Please help me get back a functional sudo and /var.
2
votes
2answers
388 views

No user name/password required when exploring from live USB?

A few months back when I buggered up my netbook and then booted into it to get information from it using a live USB. (Thinking that was 10.10) When I was copy/pasting this to another USB at no time ...
2
votes
1answer
2k views

Correcting /var permissions to it's original state

Ok I just royally screwed up my /var folder's permissions. I thought I was inside /var/www and did a chmod xxx ./* on the parent folder /var instead. Now all the permissions inside /var are messed ...
0
votes
1answer
8k views

Default user-group owner for /var folder

Unfortunately I missed and suddenly change permission for whole /var folder content (chown -R www-data:www-data ../../, but I was inside /var/www_virthost/mydomain), what is wrong as I guess ;) But ...
41
votes
5answers
128k views

How can I recursively change the permissions of files and directories?

I have ubuntu installed on my local computer with apache / php / mysql. I now have a directory at /var/www - inside which I have several of my ongoing projects. I also work with opensource ( drupal, ...