root can do everything, others (with userid != 0) can’t do anything. But anyone who has write access to the containing folder is allowed to delete the file. The owner can of course always change the flags and regain access anytime.
greybox:~ septi$ touch foo greybox:~ septi$ chmod 000 foo greybox:~ septi$ ls -l foo ---------- 1 septi staff 0 Apr 8 12:28 foo greybox:~ septi$ cat foo cat: foo: Permission denied greybox:~ septi$ sudo ls -l foo Password: ---------- 1 septi staff 0 Apr 8 12:28 foo greybox:~ septi$
Related Posts:
- What does the line “#!/bin/sh” mean in a UNIX shell script?
- Given two directory trees, how can I find out which files differ by content?
- Diff command along with Grep gives “Binary file (standard input) matches”
- What is the difference between “#!/usr/bin/env bash” and “#!/usr/bin/bash”?
- dquote> result of a execution a program in linux shell
- Command to change the default home directory of a user
- What does “&” at the end of a linux command mean?
- Syntax error near unexpected token ‘then’
- What are the uses of the exec command in shell scripts?
- What does ‘set -e’ do, and why might it be considered dangerous?
- “No such file or directory” but it exists
- How do I pause my shell script for a second before continuing?
- How do I split a string on a delimiter in Bash?
- Why does ENOENT mean “No such file or directory”?
- In the shell, what does ” 2>&1 ” mean?
- How do I grep recursively?
- How do I grep recursively?
- Should I put #! (shebang) in Python scripts, and what form should it take?
- Should I put #! (shebang) in Python scripts, and what form should it take?
- What is the meaning of *nix?
- In the shell, what does ” 2>&1 ” mean?
- How do I copy a folder from remote to local using scp?
- How to concatenate string variables in Bash
- -bash: syntax error near unexpected token `)’
- How do I grep recursively?
- How can I recursively find all files in current and subfolders based on wildcard matching?
- How can I check if a directory exists in a Bash shell script?
- How do I iterate over a range of numbers defined by variables in Bash?
- How to set ssh timeout?
- subprocess.Popen(): OSError: [Errno 8] Exec format error in python?
- How to substitute shell variables in complex text files
- sudo: apt-get: command not found
- Why do people write #!/usr/bin/env python on the first line of a Python script?
- Using find to locate files that match one of multiple patterns
- How can I recursively find all files in current and subfolders based on wildcard matching?
- Curl command for https ( SSL )
- “unary operator expected” error in Bash if condition
- How can I exclude directories from grep -R?
- How to exclude a directory in find . command
- What does “-ne” mean in bash?
- “sed” command in bash
- Is there a Python equivalent to the ‘which’ command
- How to exclude a directory in find . command
- How to generate random number in Bash?
- Shell command to tar directory excluding certain files/folders
- Argument list too long error for rm, cp, mv commands
- Difference between using “chmod a+x” and “chmod 755”
- How can I compare numbers in Bash?
- Open and write data to text file using Bash?
- How can I kill a process by name instead of PID, on Linux?
- Extract file basename without path and extension in bash
- Which characters need to be escaped when using Bash?
- Shell script “for” loop syntax
- Pseudo-terminal will not be allocated because stdin is not a terminal
- python getoutput() equivalent in subprocess
- screen Cannot open your terminal ‘/dev/pts/0’ – please check
- ./configure : /bin/sh^M : bad interpreter
- How to download a file from server using SSH?
- Is there a TRY CATCH command in Bash
- Using sudo with Python script
- how to fix the issue “Command /bin/sh failed with exit code 1” in iphone
- How to read a file into a variable in shell?
- Run a string as a command within a Bash script
- What does `set -x` do?
- conditional binary operator expected in shell script
- Is there any simple way to benchmark Python script?
- Block Comments in a Shell Script
- Sorting data based on second column of a file
- Writing a simple shell in C using fork/execvp
- Variable interpolation in the shell
- Using ls to list directories and their total sizes
- What does set -e mean in a bash script?
- What does set -e mean in a bash script?
- how to check which version of nltk, scikit learn installed?
- Copy multiple files from one directory to another from Linux shell
- What is `S_ISREG()`, and what does it do?
- execvp: bad address error
- Using grep and ls -a commands
- How to use sed to extract substring
- How to get a shell environment variable in a makefile?
- Restarting cron after changing crontab file?
- Difference between sh and Bash
- How do I write stderr to a file while using “tee” with a pipe?
- Shell Script: Execute a python program from within a shell script
- cd into directory without having permission
- How do I know the script file name in a Bash script?
- Copying a large directory tree locally? cp or rsync?
- How do I do ‘mount –bind’ in /etc/fstab?
- SSL Certificate Location on UNIX/Linux
- What is “-bash: !”: event not found”
- Meaning of directories on Unix and Unix like systems
- How to forcibly close a socket in TIME_WAIT?
- Colors in bash after piping through less?
- How to run command as user who has /usr/sbin/nologin as Shell?
- How to get pid of just started process
- Can you have more than one ~/.ssh/config file?
- How to disable everything in crontab -l?
- How to sort ps output by process start time?
- Is there a way to do a remote “ls” much like “scp” does a remote copy?
- How do I join two named pipes into single input stream in linux