1
vote
1answer
25 views

list out owned file/directories and change its permissions

Can anyone please tell how can I change files/directories owned by me only. below is the command that list out files/directories owned by me find . -user <username>
1
vote
4answers
120 views

Is there any harm in converting all files to executable?

I wanted to install certain software. The package had lots of files including some shell scripting files. Initially I had to select some files and then make it executable: chmod 777 shellscr1 but ...
0
votes
1answer
73 views

Permissions of files/directories in Unix

It appears that each file/directory has a given set of permissions shown by the 10 characters to the far left of each listing if one were to type into the terminal ls -l Considering that you can ...
0
votes
1answer
26 views

What should I do to secure, chmodly wise, my server?

I want to let my friend access my server so he can host his website. Let's call him Joris. # useradd joris note that I'm Debian. So now a /home/joris has been created. This is cool and all. BUT. He ...
1
vote
1answer
69 views

Changing chmod flags back

I'm fairly new to the whole UNIX / command shell sort of stuff, so I apologize for any ignorance for something I am not aware of. And by new, I mean extremely new. I was confused by how to change a ...
1
vote
2answers
136 views

Convert ls -ld to chmod/chown commands

X home dir permissions: drwxr-xr-x Y home dir permissions: drwxr-x--x So my question is, how can i convert drwxr-x--x to a chmod/chown command so I can put the same permissions that Y has on his home ...
0
votes
1answer
90 views

What will * in bash do?

My question is quite simple, if I am to enter these two line in OS X Terminal, what should happen? xupengjunde-iMac:Shane Shane$ cd /Volumes/External xupengjunde-iMac:External Shane$ sudo chmod -RN * ...
0
votes
1answer
29 views

how to display I/O file on shell

I am writing shell script and I need to display my output at the same time however it doesn't work with 2> somefile.txt and if I do | tee -a somefilel it will not overwrite which I need to . <> ...
1
vote
3answers
1k views

whats the difference between chmod 777 and chmod 7777

I have a professor who insists on always typing chmod 7777, but I was taught that chmod 777 was the proper convention. I tried them out on the command line and chmod 777 something.txt yeilds ...
0
votes
2answers
169 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
1answer
324 views

How to use chmod to change a file's permission?

I used ls -l to find file permissions in a shell and found this: File 1: -rw-r--r-- 1 root root 451 Mar 9 15:25 file.class.php File 2: -rw-rw-r-- 1 andy dev 872 Mar 9 15:43 file.class.php I want ...
5
votes
7answers
2k 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
2answers
304 views

What do these chmod parameters mean?

What changes are being applied by u+s,o-rwx in the below? chmod u+s,o-rwx myUserGroup myFile
3
votes
2answers
455 views

I don't fully understand CHMOD file permissions, can anyone better explain it?

I've searched the internet for some time for a good explanation of CHMOD, but have yet to come by a good explanation, since every explanation uses the same words with small variations. What I know so ...
1
vote
1answer
584 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
786 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 ...
1
vote
1answer
191 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
578 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 ...
0
votes
2answers
3k views

Making a directory on unix readable,writeable,executable by me and no one else?

What is the proper way to make a directory that I created and all of its contents readable/writeable/executable only by me, and no one else? Is this sufficient: chmod g-rx mydir/ this should make ...
1
vote
1answer
67 views

Are rights 7110 equivalent to --S--S--s?

Are rights 7110 equivalent to --S--S--s? I mean the rights for Unix' chmod command.
1
vote
1answer
166 views

CHMOD Folder and Files recursively but with different values

Is there a way to recursively change the access rights of a specific folder to 755 and files to 644 Without using the find function and having sub-directories in that folder (don't want to change ...
8
votes
5answers
11k 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.
2
votes
1answer
106 views

UNIX: Just been hacked.. any steps to securing files and directories?

I used command to delete all files modified within last day. But is there a command that can go through all PHP files and all directories and modify them back to standard permissions that's safe for ...
0
votes
1answer
25 views

Homedir inside homedir restricted access

On my VPS i've installed debian, apache+php. I have 2 users: foo and bar. Apache is configured to execute php files from /home/foo/htdocs. I created dir: /home/foo/htdocs/bar/ and made it home ...
0
votes
2answers
247 views

Chmod, Groups, and Users

So I've tried looking this up but I've not found similar examples (please feel free to refer to them if your Google skills are better than mine). What I'm trying to do is as follows: I am hosting a ...
2
votes
1answer
4k views

Chmod 755 and 751

Doing chomod 755 on a directory gives me drwxr-xr-x. Should it not give me drwxr-xr-xr since 5 is read,execute? And Doing chmod 751 on a directory give me drwxr-x--x. Should that not give me ...
19
votes
2answers
28k views

Allow specific user permission to read/write my folder

I have a folder /home/samantha/folder that I want to share with the user tom. He can read/write the folder. How do I do that? chown wouldn't do it because I still want to be able to be the owner of ...
1
vote
4answers
366 views

Question on chmod in UNIX

What does chmod 654 stand for ?
4
votes
5answers
1k views

Standard way to duplicate a file's permissions

I am trying to find a standard POSIX way to duplicate one file's permissions to another file. On a GNU system this is easy: [alexmchale@bullfrog ~]$ ls -l hardcopy.* -rw-r--r-- 1 alexmchale users ...
2
votes
3answers
1k views

Do I correctly understand permission to directories in Linux/Unix?

Do I correctly understand permission to directories in Linux/Unix? If your directory has only r (read) permission you are allowed to see the content of the directory (which files are located there) ...