Short for "file system permissions" - access control based on user, group, or global access.
28
votes
7answers
37k 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 ...
30
votes
7answers
19k views
How to '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 ...
30
votes
2answers
8k 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) without ...
29
votes
2answers
8k views
Why should /var/www not have chmod 777
When opening a page from my server, 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 security ...
16
votes
7answers
22k 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 ...
25
votes
5answers
34k views
How do I add a user to the “sudo” group?
In /etc/sudoers I see this:
# Allow members of group sudo to execute any command after they have
# provided their password
# (Note that later entries override this, so you might need to move
# it ...
40
votes
4answers
20k views
How do I sudo a command in a script without being asked for a password?
I want to turn my system on automatically every day. So I use the below code in my Python script, but sudo asks me for a password every time:
os.system('sudo sh -c "echo date \'+%s\' -d \'+ \
...
9
votes
1answer
9k 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 ...
2
votes
1answer
6k 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 ...
26
votes
2answers
10k 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
3answers
51k views
How do I install .run files?
My PC has both Ubuntu and Windows 7 installed. I have installed all my drivers in Windows like NVidia graphics, motherboard etc. Shall I install them in Ubuntu too?
I looked on the web for my Nvidia ...
3
votes
2answers
685 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 ...
13
votes
2answers
2k views
How do file permissions work?
Can you explain briefly the main concepts and command line tools used to manage file permissions?
9
votes
4answers
4k 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 ...
25
votes
4answers
6k 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 ...
4
votes
3answers
3k 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 ...
7
votes
4answers
1k views
What if I accidently run command chmod
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 ...
2
votes
1answer
228 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 ...
10
votes
4answers
4k 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?
7
votes
4answers
8k views
Apache symlinked to home directory - Permission Errors
im having a few problems symlinking my /var/www/ to a new Webroot directory inside my home folder. I think these stem from my lack of understanding of linux permissions.
As far as im aware, symlinks ...
5
votes
3answers
12k 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 ...
14
votes
3answers
11k views
sudo: unable to resolve host (none)
I have this issue on AWS on some servers. Whenever I run sudo the terminal is stuck doing seemingly nothing, until it finally spits out this error message. My terminal looks like this:
...
5
votes
1answer
2k 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 ...
4
votes
3answers
8k 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 ...
2
votes
2answers
9k views
Changing file permissions on USB external hard drive
I am using an external USB hard drive for a long time in Ubuntu 10.04, both at work and at home. Now I've installed 12.04 at home. Today I used the USB drive for the first time. I can read the disk ...
33
votes
7answers
22k views
How do I install Sublime Text 2?
I installed Sublime Text 2 on 12.04 as per this tutorial.
However I don't have adequate permissions when launching the program from the Unity launcher. For example I cannot install packages, or if I ...
26
votes
6answers
97k 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 ...
7
votes
1answer
8k 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 ...
4
votes
2answers
17k views
Default file permissions for php user www-data
I have a php installed on my ubuntu machine. The web root is /var/www
I set the permissions for this folder like so:
sudo chown -R ftpuser:www-data /var/www
ftpuser is the user I set up so I ...
10
votes
4answers
1k views
Hide 'Your profile could not be opened correctly'
I have a small public internet cafe, with Ubuntu 10.04 and 10.10. I'm using
Google Chrome 7.0.517.44 (64615), with AutoScroll - Version: 2.7.5; AdBlock is removed because of high CPU loads, and ...
9
votes
4answers
4k views
How can I run an executable from a CD when it doesn't have the executable bit set?
A textbook I'm using came with a CD containing a few supplementary applications. To my pleasant surprise, it appears to include an installer for Linux.
The readme file on the CD provides the ...
6
votes
2answers
6k 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 ...
3
votes
1answer
3k views
How to change files permissions from a different hard drive?
I installed yesterday ubuntu 11.10 on my 80GB hard drive and i can't change files permissions on my second hard drive.
How to fix this?
ps: i have dual-boot with win7
mount:
/dev/sda5 on / type ...
5
votes
2answers
7k views
Trying to make file executable on USB, but the permission doesn't “stick” [duplicate]
Possible Duplicate:
How to 'chmod' on an NTFS ( or FAT32 ) partition?
I'm using LastPass as my password manager, and I use Sesame for multifactor authentication. On Windows this was ...
3
votes
2answers
4k 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?
1
vote
1answer
160 views
Have put me out of admin
Installed a new user and then tried to create one with the name root, because sudo
nerves. Didnot work and i have learnt in the meantime, this is not possible.
I am now unable to login into user ...
6
votes
3answers
2k views
How to make Apache run as current user
I think for a development machine, its more convenient to run Apache as the current user to simplify permissions problem? How do I do that? I think its suexec but how do I configure it in ...
11
votes
2answers
2k views
What do the groups do in “Users and Groups”?
I know that some define permissions on the file system (such as www-data). But I don't understand why this question was answered successfully by adding a user to the "Video" group.
So the question ...
6
votes
1answer
696 views
How to make a directory with permanent permissions different from default
I have system-wide default permissions set with umask 027. I am in the need to make a directory whose sub-directories would need 775 permission and whose files would need 664 permissions and make ...
4
votes
2answers
2k views
How to add NTFS partition to fstab? [duplicate]
Possible Duplicate:
How to mount NTFS drive at startup
I need to run .exe files on my Vista partition but I can't give them the right permissions so i need a way of auto mounting with the ...
3
votes
2answers
10k views
What file permissions should I set on web root?
I use Ubuntu Server 10.10 and have installed Nginx web server with apt-get install nginx. It creates a default web page at /var/www/nginx-default/ and that directory has the permissions drwxr-xr-x 2 ...
5
votes
1answer
118 views
Setting A System For Public Use
I am setting a system up for public use
I want to set some rules on the usage of computer so that the users are restricted to some particular areas of the system and they don't play with sensitive ...
2
votes
2answers
3k views
Run apt-get without sudo
This might be a very naive question, but I wanted to know how I could give multiple users access to a single computer without making them root users. How would I give them limitted sudo access such ...
11
votes
8answers
9k views
How to run an Application as another user?
I use krusader for file management stuff. the problem is that apache's DocumentRoot should be under chown www-data:www-data /path/to/www. so using krusader (which is run under my account) I've not ...
4
votes
1answer
936 views
Access NTFS partitions without providing root password?
I have Ubuntu and Windows Vista installed on the same disk, different partitions.
I can access the Windows data, but each (first) time I access the NTFS partition, the system asks me for root ...
1
vote
2answers
1k views
Ubuntu took away permissions from my Data partition
The pangolin has struck again. The bug of the day for today is Ubuntu taking away my permissions on my Data partition (NTFS). One moment everything worked fine, the next moment I couldn't chmod ...
1
vote
1answer
7k views
I cant get samba to set proper permissions on created directories
I have a ubuntu server sharing some folders using samba. When a client creates a new folder or file, the permissions aren't set according to the settings in smb.conf.
My current settings for a ...
0
votes
3answers
171 views
How can I get root-like permissions so I can download stuff from the software center?
When downloading an application from the terminal it said I couldn't download it because I wasn't root, and when I got to search for the specific software in the Ubuntu software center it doesn't even ...
7
votes
2answers
479 views
How can I stop banshee from downloading podcasts as 'read only'
When Banshee downloads podcasts to the 'Podcasts' folder, it marks that folder as read only. This is a problem when I want to sync them to my Android smartphone and I am unable to listen to them ...
4
votes
1answer
188 views
Assigning different directory permission for each different groups
I am running Ubuntu 12.04 64bit server on ext4.
There are four user groups - marketing, sales, admin and etc.
I need to assign different permissions to /archive as follows:
rw for the marketing ...
