LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 01-27-2013, 05:54 PM   #1
ChiggyDada
LQ Newbie
 
Registered: Apr 2012
Distribution: Mint, CentOS, Unbuntu based
Posts: 24

Rep: Reputation: Disabled
Question Permissions Issue: directory+ subdirectory r/w etc access for current user?


Hi

I have a few different distros installed on my laptop, and I've named my "users" (myself) with my initials plus the distro abreviation (I.E. xxMint11, xxMint14, xxSuse12, etc). I've made a folder at root level in the home partition (I.E. "/DATA"), and remade all the default subdirectories within this /DATA folder. I then symlined these subfolders back into the user accounts above.
PROBLEM: when logged in, I can't ever access, save or add data to these subdirectories regardless of distro, unless logged in as root- (which doesn't work, for instance when I'm saving a download off firefox, etc)...!

I'd like whatever active user is logged on, in whatever distro, to be able to access (read/write/execute, etc) the /DATA folder recursively and in future instances, without sharing anything on the LAN/network (I.E. not shared over network).

Is this possible?
How do I do it now?

I've read file permissions and group permissions until my head is exploding, but so far no luck on trying out the chown commands I've found- short of editing every single file/folder, directory and subdirectory, it's proven impossible. When I added my user accounts to a group, I lost membership to other critical groups I guess I needed to belong to- effectively screwing up even more.


Can what I am trying to do, actually be done in linux?
-I.E. a "/DATA" folder that any active, logged in user can save files, pics, downloads to (and access via symlinks) from the two or three distros they like to log in using? I didn't think it would be such a pain to set up or I would never have started- I'm simply trying to avoid duplicating 500gb of data in multiple folders when I'm the only one using my laptop.

aigh!!!
Thank you!
-totally new to this.
 
Old 01-28-2013, 07:48 AM   #2
rootyourbrain
LQ Newbie
 
Registered: Dec 2012
Posts: 7

Rep: Reputation: Disabled
Quote:
Originally Posted by ChiggyDada View Post
Hi

I have a few different distros installed on my laptop, and I've named my "users" (myself) with my initials plus the distro abreviation (I.E. xxMint11, xxMint14, xxSuse12, etc). I've made a folder at root level in the home partition (I.E. "/DATA"), and remade all the default subdirectories within this /DATA folder. I then symlined these subfolders back into the user accounts above.
PROBLEM: when logged in, I can't ever access, save or add data to these subdirectories regardless of distro, unless logged in as root- (which doesn't work, for instance when I'm saving a download off firefox, etc)...!

I'd like whatever active user is logged on, in whatever distro, to be able to access (read/write/execute, etc) the /DATA folder recursively and in future instances, without sharing anything on the LAN/network (I.E. not shared over network).

Is this possible?
How do I do it now?

I've read file permissions and group permissions until my head is exploding, but so far no luck on trying out the chown commands I've found- short of editing every single file/folder, directory and subdirectory, it's proven impossible. When I added my user accounts to a group, I lost membership to other critical groups I guess I needed to belong to- effectively screwing up even more.


Can what I am trying to do, actually be done in linux?
-I.E. a "/DATA" folder that any active, logged in user can save files, pics, downloads to (and access via symlinks) from the two or three distros they like to log in using? I didn't think it would be such a pain to set up or I would never have started- I'm simply trying to avoid duplicating 500gb of data in multiple folders when I'm the only one using my laptop.

aigh!!!
Thank you!
-totally new to this.
Perhaps, instead of CHOWN, use chmod. It's not necessary to change the OWNER when you can simply change the access level.
Here are two examples, that may help point you in the right direction:
> http://www.linuxquestions.org/questi...-group-917938/
> http://manual.amember.com/How_To_Chmod

By the way, as you probably already know: You can view the ownership and permissions by typing ll (lowercase L - not pipe) into the Terminal, while in the directory.
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
move all files in current directory into a subdirectory in the current directory jakykong Linux - Newbie 8 07-17-2013 12:46 AM
Group permissions: user can't access 770 directory even though a member of group jm34003 Linux - Security 13 05-16-2012 03:03 PM
Giving user access to files in /sys/class/ subdirectory and /dev/video0 DiBosco Programming 1 12-01-2008 04:11 AM
search files in the current directory/subdirectory for lines that match particular rajdey1 Linux - Newbie 2 11-24-2008 03:32 PM
how to get current user home directory George2 Programming 3 05-06-2007 02:31 PM


All times are GMT -5. The time now is 04:58 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration