Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

UNIX newbie here

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

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

This tech tip describes how to install the Solaris Operating System from a tape backup that was created using the Solaris flash archive utility. I have used this procedure on the Solaris 8 and 9 OS, and it shoudl also work well on the Solaris 10 rel…
FreeBSD on EC2 FreeBSD (https://www.freebsd.org) is a robust Unix-like operating system that has been around for many years. FreeBSD is available on Amazon EC2 through Amazon Machine Images (AMIs) provided by FreeBSD developer and security office…
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 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…

840 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