Solved

UNIX newbie here

Posted on 2004-09-09
5
226 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

What Should I Do With This Threat Intelligence?

Are you wondering if you actually need threat intelligence? The answer is yes. We explain the basics for creating useful threat intelligence.

Join & Write a Comment

Let's say you need to move the data of a file system from one partition to another. This generally involves dismounting the file system, backing it up to tapes, and restoring it to a new partition. You may also copy the file system from one place to…
Why Shell Scripting? Shell scripting is a powerful method of accessing UNIX systems and it is very flexible. Shell scripts are required when we want to execute a sequence of commands in Unix flavored operating systems. “Shell” is the command line i…
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
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.:

743 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

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now