Linked Questions

196 votes
8 answers
124k views

How to avoid using sudo when working in /var/www?

I want to stop having to use sudo everytime I work in /var/www. How can I do that? I simply want to put all of my sites into this directory and work with them without too much pain.
12 votes
6 answers
100k views

Can't execute .out files, getting permission denied

I have written a C++ program and complied it to produce a.out file. However, whenever I try to run it, I get Permission Denied. I read that we can use sudo, but I can't quite get it to work. I use ...
56 votes
7 answers
46k 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?
5 votes
6 answers
19k views

NTFS Partition is mounted as read only

It's my first time installing Ubuntu. I deleted Windows and installed Ubuntu 17.04 but there is a problem NTFS Partitions are mounted as read only. What do I need to do?
1 vote
1 answer
1k views

My ubuntu default permissions suddenly changed from 644 to 664?

My ubuntu default permissions suddenly changed from 644 to 664? Usually, I am familiar with the permissions 644 and 755 for files and directories respectively. But now when I create a new dir or a new ...
0 votes
0 answers
64 views

umask (octal form) and umask -S (symbolic form) outputs are different. why? [duplicate]

Related to file and directory permissions and umask: Why the command umask (shows the octal form) and umask -S (shows the symbolic form) show different (actually the option -S shows the bits negations ...
81 votes
5 answers
377k views

What is a terminal and how do I open and use it?

What is a terminal? How do I open a terminal window? How do I use the terminal?
0 votes
2 answers
409 views

What are the consequences after accidentally executing umask 077 in folder /etc/apt

I accidentally executed umask 077 while in the folder /etc/apt. What are the consequences of this? Could I have broken something? How can I undo it?
53 votes
2 answers
61k views

How do file permissions work?

Can you explain briefly the main concepts and command line tools used to manage file permissions?
0 votes
1 answer
801 views

How to set default read privileges for all localhost projects?

I'm using localhost to develop some web pages (LAMP stack, Lubuntu desktop, trusty 14.04). Each time I create a new folder inside /var/www/html, read privileges seem to be set to owner only by ...
1 vote
2 answers
34k views

How do I use chmod to make .sh files executable? [duplicate]

My touch overlay is failing to respond in portrait but in landscape I got to a page where I am able to rotate touch input so that it can work in portrait (using this advice on Ubuntu Forums), so I ...
12 votes
2 answers
73k views

Why does umask 077 not allow the user to execute files/directories?

I'm using umask 077 ."Other" and "group" do not have any rights, but the user can't execute files/directories. Why does umask 077 not allow the owner to execute files/directories?
11 votes
0 answers
563 views

What is the difference between "chmod +x" and "chmod a+x"? [duplicate]

What is the difference between chmod +x and chmod a+x? I know both of these commands make a file executable but what is the difference between these two commands?
12 votes
5 answers
142k views

Modify permissions to -rwxr-xr-x [duplicate]

I need some help with a homework problem to modify a file's permissions. It wants it to be -rwxr-xr-x? Not sure how to make the user permissions. Thank you.
1 vote
2 answers
3k views

Is there any difference between umask value and chmod value? [duplicate]

I'm using umask in fstab settings. What I know is if i set 755 with chmod, the permission will be rwxr-xr-x. But, when I use umask in fstab with 755 value, permission that i get is ----w--w-. Giving ...

15 30 50 per page