Tagged Questions
0
votes
1answer
23 views
what's the meaning of “?” in file/folder mode bits in CentOS 6.4?
Environment:
2 desktops.
A is a Ubuntu 12.04.2 LTS
B is a CentOS 6.4
A mounts B's folder via sshfs.
The output of 'mount' in A:
Lebian@zeus:/share on /mnt/share type fuse.sshfs ...
1
vote
1answer
53 views
Write file permissions for root user
I have a file called myfile that I would like to move using:
sudo mv myfile deep-dark-directory/
I need to use sudo to move the file as deep-dark-directory needs root privileges to write and I ...
2
votes
1answer
64 views
Are read and execute permissions essentially equivalent?
Are read and execute permissions equivalent?
If one has read permission, they can just read the contents, copy them in a new file, add execute permission to that new file, and execute the new file.
...
0
votes
1answer
16 views
'reverse' fmask for NFS
On a Linux machine, I exported a few directories via NFS.
Within the directories, I want to keep all the files of permission 0644, but I can't stop people from copying a file of 0600 there.
...
0
votes
1answer
28 views
Copy all files from one place to another whilst keeping group permissions
I'm trying to copy files from one place to another, I am using this:
cp -R /from/ /to/
However, whilst this is keeping the standard permissions, it is setting the group permissions to 0 0 ...
1
vote
2answers
33 views
chmod symbolic notation: unexpected “=” operation behavior
I am reading The Linux Command Line by William Shotts and I read somewhere in the book a part regarding permissions which says The operation may be a “+” indicating that a permission is to be added, a ...
0
votes
1answer
78 views
Cannot modify files with SAMBA and CurlFTPfs
I have all my ftp accounts mounted via CurlFTPfs with allow-others option. All directories have --- --- rwx (0007) permission after ftp mount with umask=0770 . This way I can log as another user (than ...
2
votes
2answers
185 views
default file permissions for ftp uploads in ubuntu (vsftpd)
I followed the answer to this question for setting default file permissions in my web root folder:
...
0
votes
1answer
44 views
Check file permissions for another user
Apache is complaining about not being able to access a file. Is there an easy way to find out what is blocking the access?
I know that I can go through the process of knowing which groups the user ...
0
votes
2answers
40 views
How can a read I file with another owner, in the same group and with the world readable bit set? [duplicate]
I am user tim, in the bob group, and I have a file with unusual permissions:
$ whoami
tim
$ groups
lp wheel cron audio cdrom video bob tim
$ ls -l foo
--w--w-r-- 1 bob bob 10 Feb 15 18:43 foo
...
0
votes
0answers
69 views
Show only files owned by the user
I have a folder containing lots of backup images. I want users to only see their own files. I've tried setting the permissions to 000 but they still can see the file using ls (the backups belong to ...
0
votes
2answers
42 views
None of my directories are writable
Argh help lol
I have ran a chown command (silly me) which I did not fully understand now when I connect via filezilla and try do anything write/delete files/directories I get
Error: mkdir ...
0
votes
1answer
65 views
ACLs vs group permissions in linux
I would like to allow a set of students to access a shared web-server. Students work in groups, and each group's home directory contains a www folder that should be accessible to the shared instance ...
1
vote
2answers
137 views
How to transfer files' ownership on Windows 7?
I switched from Linux to Windows. And I copied some private files (include folders) from ext file system to NTFS file system partition (operated on Linux). Then I logged on Windows as user A (for ...
2
votes
1answer
92 views
Linux permissions change without root privileges
Is there anyway for another user to change permissions of file without root permissions? If another user has access to my drive and they can theoretically change the user bit in the file via a binary ...
-2
votes
3answers
144 views
A file which is not a dir nor a file
This may look like a weird question, but I just got this output for a file (directory?) in my system. This may be a trivial or well-known error, but for me, this file (directory?) called ...
0
votes
1answer
125 views
Change owner of file without being root
I suggest that I have a log file with 666 permission and its owner is alice. So user 'bob' can change its owner by this:
cp log log.temp; rm log; mv log.temp log
So how can I fix this risk?
0
votes
1answer
54 views
Unable to deleting damaged files on external drive as root
I have an encrypted, external hard drive that I use for backups. The backups are hardlinks to simulate incremental backups (using rsync). I am using Debian stable.
Apparently some of the files are ...
0
votes
2answers
156 views
Write permission on binary/executable files: Are they necessary?
I thought:
echo hello world > /usr/bin/firefox
would display the message in the browser. Nothing happened. Then I tried:
echo hello world > /usr/bin/kwrite
to see if kwrite opens with 'hello ...
2
votes
3answers
263 views
How do I list the effective file permission in Linux?
i.e:
Suppose the directory permission is 700, and the file under the directory is 570
Then the effective permission of the file is 500
Is there such a command that lists the effective permission by ...
1
vote
1answer
133 views
Ubuntu / linux - Set permissions recursively through a folder where files/dirs have certain permissions
My title probably sounds more cryptic than it needs to.
I'm using ubuntu 12.04 and want to be able to change permissions on files and folders recursively to 755 but only where the permissions are ...
0
votes
0answers
31 views
Different default permission for directory and file
I want to set a different default permission for new directory and file. For example, default directory permission is 770 (group members can write things to the directory) but default file permission ...
1
vote
1answer
92 views
Disable Linux File Permissions for a tree
Is there a way to disable file permissions for a whole directory tree so that permissions of new files and directories are automatically disabled?
I have a multi user environment and want to have a ...
1
vote
0answers
335 views
Problems in Linux Mint 13 MATE with NTFS partitions
I'm using Linux Mint 13 MATE (32 bit).
With Caja file manager (based on Nautilus 2.x) I can create, modify and remove folders and files on NTFS partitions whitout problems.
But, for example, when I ...
1
vote
2answers
53 views
Read file not owned by me in a directory owned by me
A daemon process running as a special user has created files which only its user can read. The directory is owned by me and I have write access to the directory. Is there any way that I can read or ...
1
vote
3answers
132 views
Does permission 777 allow scripts outside your server to write on it?
Let's say example1.com is located in US, and example2.com is located in EU.
example1.com/folder/ has 777 permission.
Will a script in example2.com be able to write on example1.com/folder/?
Or is ...
0
votes
2answers
72 views
Why is there user-ownership in Linux? Aren't group/other file permissions enough? [closed]
I think I rather understand how file permissions work in linux. However, I don't really understand why they are split into three levels and not into two: can anyone explain the rationale for why a ...
0
votes
2answers
1k views
Can't write to '/etc/network/interfaces' file in Ubuntu
I just want to set to default /etc/network/interfaces but I can't because I get a Permission denied error when I try to write to it:
auto lo
iface lo inet loopback
0
votes
1answer
69 views
NFS symbolic link to /root possible?
Suppose that I have access to nfs server. The directory that I have an access is /shared and it is owned by root. I can read and write to that directory + subdirectories + files. Suppose that I want ...
1
vote
1answer
77 views
Does ls provide information about NFS permissions?
When writing to NFS directories remotely, what would the permissions of files written be, when both the client and the server use Linux?
Does ls -l show file permissions as seen by the NFS server?
2
votes
1answer
429 views
Bash: permission denied for file write
I followed this tutorial guide on "How to Create Linux Proc Files in C Program using LKM".
I've successfully made my module and loaded it in. Now I want to echo to my proc file to make sure the ...
6
votes
1answer
272 views
Permissions issue when trying to execute command in post-commit hook in SVN
I have a dull problem that I can't seem to solve.
What am I trying to do?
post-review --repository-url=http://xxx.xxx.xxx.xxx/svn/testRepo2 --revision-range=6:7 --server=http://reviews.example.test/ ...
0
votes
0answers
249 views
SAMBA and Linux ACLs — “Permission denied” on write to share but file written nevertheless
I set up a writable share directory "/home/net/share" with acl like this:
sudo mkdir -p "/home/net/share"
sudo setfacl -m "u:localuser:rwx,u:remoteuser:rwx,g:users:rwx" "/home/net/share"
My ...
1
vote
1answer
58 views
Is it possible to upload setuid-set file to ftp-accessible directories?
Just curious, is it possible to upload files set with setuid permission to directories using ftp and retain its setuid permission?
Or does FTP always change the permission?
4
votes
1answer
168 views
where do default file permissions before umask come from?
Where are default permissions for files and directories set before a umask is applied to limit those?
Or are they 0777 by default?
-1
votes
1answer
87 views
Setting permissions to write and read from /var/www
I need that directory, as I want to put my sites there, so that apache can run them.
It is my virtual directory path. I am new to linux. I just want to read and write from that directory.
What ...
0
votes
3answers
521 views
Why is setuid ignored on directories?
On Linux systems, you can successfully chmod u+s $some_directory, but instead of forcing the ownership of new subdirectories and files to be the owner of the containing directory (and setting ...
1
vote
1answer
52 views
delete permission for deleting for all users/gorups
I have a basic question about file permission on Linux.
I would like to have my file to be deletable by all users/all groups on a machine.
At the moment I have a specific user user_A that creates a ...
1
vote
3answers
409 views
How to find files on Linux where only root has read permission
I want to find files in some folder like /home/mike/www/test where only root has read permissions and not any other user.
EDIT: I have the sudo and permission but I want to list all files where only ...
1
vote
0answers
111 views
groups permissions not working
I'm confused why is this not working? Admin group is having access on the /opt directory and I'm the member of that group and still I can not make a new directory there.
vita@eldamar:/opt$ ll /
total ...
1
vote
1answer
2k views
How to gain permission to read/modify in Ubuntu?
I just installed Ubuntu and when I open some file in the terminal then i can access that file as root using sudo -i to change ownership. However, if I modify a file in my local server folder ...
2
votes
1answer
32 views
Manage mysql files with nother user
I need to copy files in /var/lib/mysql/database/* yo another dir with admin user.
File in /var/lib/mysql/database has 660 mysql:mysql
I already add admin user to mysql group, but it didn't work.
3
votes
1answer
570 views
Override Samba directory permissions
I'm trying to understand the samba rights management, but I think I missed a bit. I have 2 kinds of users: guests and users with a login via LDAP.
Now I try to override all permission settings in ...
22
votes
3answers
846 views
Subverting the execute flag on Linux systems. Why is this possible?
Whilst reading this, I found the following exploit:
% cp /usr/bin/id ~
% chmod -x ~/id
% ls -al ~/id
-rw-r--r-- 1 edd edd 22020 2012-08-01 15:06 /home/edd/id
% ~/id
zsh: permission denied: ...
2
votes
1answer
72 views
Windows 7 installation removing fedora17
Currently I have Fedora 17 installed on my system. For some Windows specific tasks I need to use Windows, so I want to install Windows 7 on my system.
All of the partitions on my harddrive are ...
1
vote
1answer
170 views
Cannot read /proc/<pid>/smaps, despite having mode 444 permissions
I'm trying to write a script that examines memory usage for running processes.
To do this, it needs to read /proc/*/smaps files.
Processes owned by root have the permission set to '-r--r--r--', which ...
0
votes
2answers
664 views
Linux file permissions not being preserved
I am deploying some custom software as root (a necessity for this situation). I set the owner/group to user1:user1 and set all the files to 644 beforehand in shell, then copy and deploy with ant. ...
3
votes
2answers
1k views
Why do you need execute permission on the parent directory to rename a file
On Linux/Unix file-systems, I understand the reason why you need the execute permission on the parent folder to read or write a file: the execute permission gives you access to the inode on the file, ...
1
vote
0answers
103 views
Lost file mode information on ext3 directory hierarchy
An entire directory hierarchy of mine lost its file mode info. E.g.,
ed@bob:~/dev$ ls -l nir.git/
ls: cannot access nir.git/test: Permission denied
ls: cannot access nir.git/log: Permission denied
...
1
vote
2answers
139 views
find files where group permissions equal user permissions
Is it possible to do something like find -perm g=u? I say "like" because -perm mode requires mode to specify all the bits, not just g, and because I can't put u on the right side of the =, like I can ...

