LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora
User Name
Password
Fedora This forum is for the discussion of the Fedora Project.

Notices


Reply
  Search this Thread
Old 02-04-2006, 08:51 AM   #1
kcpaige89
LQ Newbie
 
Registered: Aug 2005
Posts: 26

Rep: Reputation: 16
How do you allow users access to Directories?


I mounted 2 partitions on my second HDD during installation at custom directories /Switch and /ss. My only problem is i can only write and modify to them with root and not my user account. How do i allow my user account to have all permissions to these 2 directories.
 
Old 02-04-2006, 09:37 AM   #2
sipsipi
Member
 
Registered: Dec 2005
Location: Chicago
Distribution: Fedora and Redhat
Posts: 86

Rep: Reputation: 15
You will probably want to chown them with the group that you belong to...

for instance you can do an ls -al and you will see:

-rwxr-x--- 1 root root 135 Jan 11 13:30 foxtrot.sh

Here you can see that user root and group root owns foxtrot.sh file.

so you will want to chown -R user:group directory_name or file

When you do this, you might want to cat /etc/group to find out what group your user belongs to. Also, if you want, you can edit (vi, pico) your /etc/group and add a user to multiple groups.

Additionally, but not a great idea, you can change permissions using chmod to 777 -- which is equivalent to read, write, execute for user, group, and world. Check chmod out for that information... it can be done by number or by operations that look like chmod +rw filename_or_directory_name.

(For both of these options, pay attention to recursion. Also pay attention to umask)

Last edited by sipsipi; 02-04-2006 at 09:40 AM.
 
Old 02-17-2006, 05:08 PM   #3
kcpaige89
LQ Newbie
 
Registered: Aug 2005
Posts: 26

Original Poster
Rep: Reputation: 16
I tried to chown -R kcpaige:kcpaige /ss and all the files say that operation is not allowed. I also did that with /Switch and got the same problem. IDK what to do next
 
Old 02-18-2006, 04:08 AM   #4
Gethyn
Member
 
Registered: Aug 2003
Location: UK
Distribution: (X)Ubuntu 10.04/10.10, Debian 5, CentOS 5
Posts: 900

Rep: Reputation: 32
Sounds to me like you need to adjust your /etc/fstab.
 
Old 02-19-2006, 09:06 PM   #5
sipsipi
Member
 
Registered: Dec 2005
Location: Chicago
Distribution: Fedora and Redhat
Posts: 86

Rep: Reputation: 15
Are you doing this as root? or what user?
 
Old 02-20-2006, 07:18 AM   #6
ethics
Senior Member
 
Registered: Apr 2005
Location: London
Distribution: Arch - Latest
Posts: 1,522

Rep: Reputation: 45
ls -l wil ltell you which user:group it belongs to, if it's root then login as root and run chown user:group /directory

what's the file system of the partitions? if it's fat32 and NTFS they don't support proper UNIX permissions, and so you'll need to set the umask value in /etc/fstab (the default permissions the files get when mounted/created.
 
  


Reply



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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
new directories for new users kvtournh Mandriva 1 09-07-2005 10:07 AM
securing users to certain directories ? lozza1978 Linux - Newbie 2 05-09-2005 10:04 PM
Providing WebDAV access to users directories? GameDNA Linux - Networking 1 12-04-2004 10:32 PM
Enter other users' directories MasterC Linux - General 14 11-27-2002 12:57 AM
Havin trouble allowing FTP users to access files and directories bripage Linux - Networking 9 04-15-2002 03:54 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora

All times are GMT -5. The time now is 09:52 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