LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 01-02-2002, 06:24 PM   #1
glock19
Member
 
Registered: Aug 2001
Distribution: Debian Etch
Posts: 510

Rep: Reputation: 32
File Permission


Logged on as root, I created a directory on my local hard drive "/share".

When I log on as my normal user, I can't add or delete files within that directory.

How do I make it so my normal user can have full permission to this directory?

Last edited by glock19; 01-02-2002 at 06:26 PM.
 
Old 01-02-2002, 06:30 PM   #2
DavidPhillips
LQ Guru
 
Registered: Jun 2001
Location: South Alabama
Distribution: Fedora / RedHat / SuSE
Posts: 7,163

Rep: Reputation: 58
the safest way is to change the group or the folder to something like users of some other group

then add users you want to have access to it to the users group.

some systems add all users to the users group by default so if you want it only accessable by certain users create another group.

give the group rw access to the folder


chmod g+rw foldername
 
Old 01-02-2002, 07:08 PM   #3
glock19
Member
 
Registered: Aug 2001
Distribution: Debian Etch
Posts: 510

Original Poster
Rep: Reputation: 32
How do I tell what groups and users I have on my system?

How do I add a group or a user to a folder?
 
Old 01-02-2002, 07:29 PM   #4
taz.devil
Senior Member
 
Registered: Nov 2001
Location: Wa. State
Distribution: Slackware
Posts: 1,261

Rep: Reputation: 45
Depends on where you're at. If you use KDE you can use the user profiles program in the System directory and see things graphically or on the command line the file that holds your group names and so forth is in /etc called group. Type: cat /etc/group and it will output all of your groups. To add a group type groupadd and look at the helpfile as the options you may want. But in X the user editor is pretty easy to add/del/modify andything too.
 
Old 01-02-2002, 07:40 PM   #5
DMR
Member
 
Registered: Jun 2001
Location: Fairfax, California
Distribution: RH 9.0, RH 7.3, Mandrake 8.0
Posts: 986

Rep: Reputation: 30
This link does a good job of summing up what the others have already suggested. It explains how to:

- create new groups
- add users to a group
- assign users to a different group
- change the group associated with a particular file or directory.

Hope this helps.
 
  


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
File permission help! jorasmi Slackware 7 08-15-2005 10:07 PM
About the file permission ust Linux - Distributions 1 05-06-2005 03:05 AM
File Permission gardenair Linux - Newbie 5 04-28-2005 10:35 PM
file permission Nechos Linux - Software 2 10-04-2003 03:31 PM
file permission !!! hitesh_linux Linux - General 5 03-25-2003 12:27 PM

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

All times are GMT -5. The time now is 09:15 AM.

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