Tagged Questions
0
votes
2answers
39 views
What unix permissions do I need?
I have a directory that hangs off root:
/data/my/folder/here/ and
/data/my/folder/herealso/
I wish all users to be able to write files to the here and herealso directories. But limit (as much as ...
0
votes
3answers
56 views
How to give access to user for specifig directory?
I made symlink when logged in as www (apache user):
ln -s /home/anotheruser/test /var/www/test
Now I go to my mydomain.com/test and I get a 403 error.
/home/anotheruser/ has permissions 764 ...
0
votes
1answer
21 views
Listing unreadable group files in Unix
Is there a way I can list ordinary files that are unreadable by a group in Unix?
What would be the necessary code for that?
And can I do it without using the find command?
0
votes
1answer
36 views
Dropbox on Linux Mint permissions issue
I have been developing a python package in dropbox. DB seems to be causing a very strange permissions issue. I own and have RW permissions to the directory and all of it's contents. Yet, when I try to ...
2
votes
3answers
91 views
Does file user ownership change when transferring files between computers?
Scenario: A file created under computer A (userA), which takes file ownership as userA in file permissions, is then transferred to computer B with a different user (userB)....
Does the ownership of ...
0
votes
1answer
23 views
Linux user group permissions and virtual development environments
So, I wanted to establish a virtual development environment that would be shared by a few users for collaboration.
I created a new user group X denoting the group of users allowed access the virtual ...
0
votes
1answer
42 views
Single “find” command with multiple arguments?
I need to devise a single find command that searches for:
All C# or Java programs
Located in the home directory of the current user
Have at least one hard link
Readable for everybody
Have at least ...
0
votes
1answer
35 views
unix sytem-access
I have the permissions below for the directory V, created by the owner a. Now, according to the properties, the associated group should also be able to read write and execute in the directory.
Does ...
5
votes
7answers
553 views
“chown -R root /” how screwed am I?
I accidentally performed the command chown -R root / while trying to change the permissions to the public folder of my rails app. I believed this changed the permissions to all my folders on the / ...
0
votes
1answer
99 views
Understanding chmod and setfacl
I have a file that I think I should be able to execute. It shows these permissions with ls -lah:
-rw-rwxr--+ foo foo-group
And these with getfacl myfile:
# file: app/console
# owner: foo
# group: ...
0
votes
2answers
59 views
Permissions … how to make a folder undeleteable?
On FreeNAS (FreeBSD) ... I'm trying to make a folder 'undeleteable'.
I logged in as root. I created a folder called test and chmod it to 700 (rwx------). Owner is root, group is wheel.
Then I log in ...
0
votes
1answer
228 views
Unable to do passwordless login to FreeNAS
I'm trying to use this command to allow me passwordless login to a FreeNAS box:
cat ~/.ssh/id_rsa.pub | ssh root@server.com 'cat >> ~/.ssh/authorized_keys'
But I get:
...
3
votes
2answers
68 views
Accidentally blocked myself out of my private UNIX directory
I used the following command to see who had permission to my directory.
fs la
I then wanted to block someone out, so I used the command (and accidentally used my username instead of the person I ...
0
votes
1answer
47 views
What is the difference between the special permission and execution permission
I'm new to unix , i have tried to find the difference between permissions of execute permission and special permissions . For instance , the "su" command has the permissions
-rws-r-xr-x
Under that ...
1
vote
2answers
192 views
How can I remove other user's sub-directory from my directory?
I have a directory in my home-directory, which I share with a UNIX-group, but now want to delete.
If there is a file owned by an other user in this directory, I can remove it with rm, because the ...
0
votes
1answer
34 views
Is there any way to access files belonging to another group?
-r--r----- 1 root scratch 13 Nov 11 15:11 scratch.txt
I am a member of a different group (guest). Is there a way to access this file?
1
vote
2answers
56 views
Data permission: what if adding only write permision to a file?
What if a user got only write access to a file? Is he able to read the file or only to "write"? But if you can write...you can also read, so this doesnt make sense or?
The question is for unix-like ...
1
vote
1answer
210 views
755 directory permissions aren't allowing file creation by owning userid?
I had overly permissive directory permissions (777) on my home dir, and just changed these to 755:
# cd
# pwd
/home/machinename/myuserid
# ls -ld .
drwxr-xr-x 9 myuserid mygroupid 4096 ...
0
votes
1answer
73 views
Recommended permissions for /home
What is a recommended setup for /home permissions?
I know about user / group / other, about sgid flag and I know what User Private Groups are. I have read the comment about adduser no longer setting ...
1
vote
2answers
647 views
What does the number after Unix/Linux file permissions like “-rw-rw-r--. 1 ” mean in “ls -l” output
Can any one explain "-rw-rw-r--. 1 " and give some "detailed" information on ls -lart command.
Why does the number change after "-rw-rw-r--. 1 " <----
0
votes
1answer
53 views
What permissions does a directory need so that anyone can cd into it but nobody but root can ls in it?
I have seen this before in some directories. Where if you know the name of a file you can open it and edit it, but you cannot ls in the directory so if you don't know the name of the file you can't ...
1
vote
1answer
395 views
folder permissions on FreeBSD
I have a drive on my FreeNas (8.2) box which transmission copies files automatically when it is finished downloading them. It works fine as long as the download is a single file, if it's folder with ...
2
votes
1answer
257 views
Making a program always run as root in OS X
I'm trying to make a C program run always as root, no matter who is calling it.
Basically, I want it to invoke "mkdir /test" as an example.
So I created the C program as follows:
#include ...
0
votes
1answer
146 views
General administrator/deploy user permissions on centos
I'd like a user who is capable of managing the files of other users, but still must run sudo to access those files and functions outside of a /home/directory. Is such a user/group already defined in ...
2
votes
3answers
237 views
What is user/owner 24561?
So, I just installed the node.js package from nodejs.org and I was poking around to see what it installed. Over in /usr/local/bin I saw this owner 24561. I see it in a few other places too. What is ...
0
votes
3answers
521 views
Unix make all files copied into directory owned by me
I am working with a group on a supercomputer and we are storing all project files in my home directory, the problem is if I need to manage some of the files, I can't because they own the files. I need ...
0
votes
1answer
592 views
Linux: why can't I delete files/dirs when my username is in the same group as the files' creator?
I have a headless torrent client (Transmission) which downloads files into /home/username/downloads with the username debian-transmission, in the group debian-transmission.
I've added the account ...
0
votes
1answer
154 views
Giving directory access to only certain users?
I currently have the following directory:
drwxrwsr-x 4 user1 Group1 4.0K Apr 18 18:29 foo
Under Group1 there are 20 users. I want to give user2 and user3 who belong to Group1 access to directory ...
3
votes
2answers
3k views
Linux permissions and owner being preserved with cp
I can't understand the following behavior:
I have a file named someFile under /opt/com/internal/someFile
If I do ls -all /opt/com/internal/someFile the permissions are 700 user:userGroup
I am root ...
1
vote
1answer
156 views
Search for chmod 777 in terminal
I'm working with a system where a few files and maps seem to have permission 777.
I want to change them to a more secure chmod, but I don't have a list of all the 777-files.
I could do a terminal ...
0
votes
1answer
170 views
Ignore Unix file permissions
So I am working on a backup system, which will create a snapshot of a LVM volume, mount it and copy the files over to another server using rdiff-backup. Now this works well, however on the restoring ...
0
votes
2answers
2k views
how to fix Permission denied on directory in unix?
I have a ksh file which will download a zip file from the internet in the /tmp directory with name f.zip
Why do I get Permission denied?
$ ./downloadbcfi
Current name is ...
0
votes
1answer
341 views
Unable to edit files in _www group on OS X
I am using my MacBook as a local dev environment. In order to make the files publishable I had to give my web folder user and group of _www:_www using chown.
I'm using another account to log into my ...
1
vote
3answers
1k views
Editing files in /var/www
I know that the owner of the files in /var/www must be www-data to properly run by apache. But when i run the chown -R www-data:www-data /var/www command i can't the php files in my editor.
How can i ...
0
votes
1answer
567 views
Not able to login as sudo in Unix, “sudo : must be setuid root”
Today I did a crazy thing: I changed the permissions for all files/folders under /usr/bin/ as 777. Read, write and execute. Since then I am not able to login as sudo. It simply throws
sudo : must ...
2
votes
3answers
648 views
gzip change file ownership
Here is a case i don't understand
i have a group 'bar', and this group has two users; 'foo' and 'bar'.
I have a test.txt file, 'foo' is the owner and 'bar' user only can read it.
However, if 'bar' ...
1
vote
1answer
50 views
Can any user write to a non-restricted child directory of a restricted parent directory?
I have a parent directory and a child directory like below.
Can anyone write to the child directory, although the parent restricts only to the owner?
drwxr-xr-x parent
drwxrwxrwx child
3
votes
2answers
411 views
Deleting files belonging to others as root user
I know root has very strong permissions in Unix, but I was wondering if it can circumvent the file permission system.
I have a directory whose owner is not root, the directory has permissions ...
0
votes
0answers
98 views
Copy read-only Unix files
My teacher created a subdirectory that has a bunch of very lengthy .pl files he wants us to use to test our code on. I usually just xfer any files I need through WinSCP, but I don't have permissions ...
2
votes
1answer
116 views
Unix User Group or Sudo/Su
I am in a situation where I have to chose between unix user groups or sudo to tackle
an issue.
To give some background,
A Linux app is installed as user X. The installation copies some scripts and ...
0
votes
2answers
474 views
How to specify group with chmod?
I was asked to add group-wrx permissions to a directory in another user's home folder.
I believe what I should do is run `chmod 771 -R directoryname' in the parent directory. What I can't find ...
0
votes
0answers
3k views
How to set permission to ftp-user so that has FTP access to /home/another-user/www/public_html folder?
I'm a novice with Linux/Unix. Basically I'm attempting to setup a Web server, and FTP server on a Linux box via SSH.
My plan is to have Apache's root folder inside the main user account like
...
2
votes
1answer
230 views
What's to stop somebody from creating a setuid-root script on a flash drive, then putting it into another person's computer and getting root access?
What's to stop somebody from creating a setuid-root script on a flash drive, then putting it into another person's computer and getting root access? I assume there's some kind of protection against ...
2
votes
1answer
220 views
When are Unix directory permissions enforced
Say I have a directory that only root can access:
$ sudo -s
$ mkdir ~/rootonly
$ chmod 000 ~/rootonly
Inside that directory is one with global-everything permissions:
$ cd ~/rootonly
$ mkdir ...
2
votes
2answers
824 views
Permissions: Why do I always have to type 'sudo' before every command?
I'm editing theme files in a wordpress site owned by www-data:www-data as my main user 'oma'. Every time I create a file or edit one, I have to use the sudo command and it gets created as root:root. ...
4
votes
1answer
3k views
How do file permissions apply to symlinks?
Let's say you have this structure:
+ directory
-- file1
-- file2
-- file3 -> /tmp/file3
file3 is a link to another file3 somewhere else on the system.
Now let's say I chmod 777 the directory ...
1
vote
3answers
270 views
Unix Directory Hierarchy Permissions
Suppose I have a directory with no access for anyone except for root. Am I guaranteed that everything in the directory is inaccessible to everyone but root? In other words, are file permissions ...
8
votes
5answers
7k views
sudo chmod -R 777 /
sudo chmod -R 777 /
I did this. It was a mistake. Is there any way to undo it?
Basically it's messed up more things than I can list. I don't have time-machine enabled on my mac.
8
votes
3answers
11k views
How can I make chown work recursively?
I've got a directory called pdfs that contains a bunch of sub- and sub-sub-directories. I want to change ownership on all PDF files in all of the subfolders. I just tried this:
chown -R ...
0
votes
1answer
490 views
ubuntu 9.04 /var/www permissions
ubuntu 9.04, user luca wants to access the /var/www directory.
the directory is owned by user root, group root
I changed the group ownership to www-data (sudo chgrp -R www-data /var/www/) and added ...