LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 08-30-2002, 07:22 AM   #1
chamkila
Member
 
Registered: Nov 2001
Distribution: Redhat 7.3 Slackware 8.1
Posts: 87

Rep: Reputation: 15
Groups


How can I give some user full permission on directory and others just execute.

I need to let one for my user account to have read, write, execute in one of the directory, but I want others to just be able to execute.

I am using RedHat 7.3, I would like to know how to do this I command line.

Thanks alot


Chamkila
 
Old 08-30-2002, 08:39 AM   #2
nautilus_1987
Member
 
Registered: Aug 2002
Distribution: Slackware 8.1
Posts: 750

Rep: Reputation: 30
man chown
man chmod
try this out, I think it will help you
But if you don't want to read the manuals so here are commands:

chmod u+rwx somefile( or somedir )
chown username somefile

good luck
 
Old 08-30-2002, 09:06 AM   #3
yixudong
LQ Newbie
 
Registered: Aug 2002
Location: Somewhere in East World
Distribution: RH7.x
Posts: 11

Rep: Reputation: 0
If the user whom you want to have the full access to some file,you should put him into your group and change your file access to rwxrwx--x.
 
Old 08-30-2002, 09:13 AM   #4
wonderpun
Member
 
Registered: Aug 2002
Location: Geekland, Planet Earth
Distribution: Slackware 9.1
Posts: 323

Rep: Reputation: 30
Well first you have to show who is the user(owner) of the file. You do it like this:

chown username somedir

The command chown changes the owner of the file.
To change the permisions of the file or directory you use the command chmod:

400 - will let the owner read
200 - will let the owner write
100 - will let the owner execute
40 - will let the group read
20 - will let the group write
10 - will let the group execute
4 - will let everyone read
2 - will let everyone write
1 - will let everyone execute

So when you need to let the owner to read,write,execute and others just to execute you sum the umbers you need. Now you'll need: 400+200+100+1=701
Then you change the permisions like this:
chmod 701 somedir
 
Old 08-30-2002, 11:09 AM   #5
chamkila
Member
 
Registered: Nov 2001
Distribution: Redhat 7.3 Slackware 8.1
Posts: 87

Original Poster
Rep: Reputation: 15
I have tried chown and it works. Is it better to use chgrp?

thanks alot for the information.

chamkila
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
groups (system default groups) Xavius Linux - General 2 07-18-2012 03:50 AM
Map Windows NT Groups to UNIX Groups - why? kenji1903 Linux - Networking 4 10-16-2007 12:52 PM
limit to nesting groups within groups? geekgrl Linux - General 3 10-16-2007 12:50 PM
winbind: wbinfo -g only lists global groups from PDC and not local groups saradiya Linux - Networking 0 12-01-2003 03:58 AM
Groups members of other groups bentz Linux - Security 6 06-23-2003 12:23 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 09:40 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration