Linked Questions

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 ...
  • 1,301
0 votes
1 answer
513 views

Is it possible to get any folder created within a directory is being created with 777 permission? [duplicate]

I have one requirement in which when I create a directory I want to create it with 777 permission. I did all stuff but not able to do this, anybody knows how to do this? Then please share. Suppose I ...
  • 11
0 votes
0 answers
63 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 ...
  • 1
192 votes
7 answers
120k 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.
  • 2,055
81 votes
5 answers
372k 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?
55 votes
7 answers
45k 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?
  • 75.1k
52 votes
2 answers
56k views

How do file permissions work?

Can you explain briefly the main concepts and command line tools used to manage file permissions?
10 votes
5 answers
119k 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.
  • 133
12 votes
5 answers
96k 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 ...
11 votes
2 answers
65k 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?
  • 111
18 votes
5 answers
10k views

How to make /sbin/shutdown, /sbin/reboot etc. require sudo again in 16.04?

For whatever reason, we do no longer need to be root (or using sudo) to run /sbin/shutdown, /sbin/reboot etc. This seems to be because those executables are now symlinks to /bin/systemctl which ...
  • 104k
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?
6 votes
3 answers
16k views

File permission management

I would like to be able to move files downloaded by transmission in the name of my primary user. I added this user to the group debian-transmission, but it is not enough, only the owner has the ...
6 votes
2 answers
16k views

/opt folder missing in Ubuntu 14.04

I'm trying to install Eclipse "by the book" in /opt, but when trying to access /opt, it seems that /opt directory doesn't exist in Ubuntu 14.04: $ cd /opt/ bash: cd: /opt/: No such file or directory $...
  • 447
1 vote
4 answers
60k views

Permissions issue when trying to save file to /var/www [duplicate]

Possible Duplicate: How to avoid using sudo when working in /var/www? I have install PHP from this article on my ubuntu computer http://www.howtogeek.com/howto/ubuntu/installing-php5-and-apache-...

15 30 50 per page