Solved

UNIX newbie here

Posted on 2004-09-09
5
228 Views
Last Modified: 2010-04-21
I have an access to the school solaris OS. I have my own directory and i want to deny an access to my directory to anyone except me of course and the admin. I want to do that because i can access other people's directory and i can see their files and they can see my files. Thanks in advance
0
Comment
Question by:Carl3003
  • 2
  • 2
5 Comments
 
LVL 23

Expert Comment

by:brettmjohnson
ID: 12023338
man chmod

specifically  chmod o-r mydir

0
 

Author Comment

by:Carl3003
ID: 12023404
chmod o-r mydir- this means that only the admin can read mydir?
0
 
LVL 23

Accepted Solution

by:
brettmjohnson earned 25 total points
ID: 12023467
no.  

Depending upon your primary group affiliation, other group members might still be able to read the directory.
To deny other group  members access, you would remove that right as well:

chmod g-r mydir

The admin would have superuser privileges, allowing unrestricted access to the directory.

0
 
LVL 38

Assisted Solution

by:yuzh
yuzh earned 25 total points
ID: 12023470
chmod 700 mydir

this will only allow you to access to your dir (the super user root is the god of the system
he can still do whatever he want)
man chmod
to learn more details.
0
 

Author Comment

by:Carl3003
ID: 12023557
cool, i am getting there...
0

Featured Post

Master Your Team's Linux and Cloud Stack

Come see why top tech companies like Mailchimp and Media Temple use Linux Academy to build their employee training programs.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Attention: This article will no longer be maintained. If you have any questions, please feel free to mail me. jgh@FreeBSD.org Please see http://www.freebsd.org/doc/en_US.ISO8859-1/articles/freebsd-update-server/ for the updated article. It is avail…
When you do backups in the Solaris Operating System, the file system must be inactive. Otherwise, the output may be inconsistent. A file system is inactive when it's unmounted or it's write-locked by the operating system. Although the fssnap utility…
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…

810 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question