LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 03-29-2008, 03:51 PM   #1
soplin
Member
 
Registered: Apr 2007
Distribution: Mostly Debian
Posts: 114

Rep: Reputation: 19
GNOME Links


Suppose there are two home users, A and B, and each of these members have folders they'd like to share with one another without making copies, how could they achieve that?

I thought of using links, but GNOME links requires a file to be created in the other user's home, which is restricted by an Access Files only mode and so that can't be done.

thank you
 
Old 03-29-2008, 04:00 PM   #2
jay73
LQ Guru
 
Registered: Nov 2006
Location: Belgium
Distribution: Ubuntu 11.04, Debian testing
Posts: 5,019

Rep: Reputation: 130Reputation: 130
Create a common directory owned by either and create a group that is shared by both. You may still need to chmod it a bit to make it writable by both (in general, chmod 775 for the directory, chmod 664 for the files).

Last edited by jay73; 03-29-2008 at 04:04 PM.
 
1 members found this post helpful.
Old 03-29-2008, 04:12 PM   #3
soplin
Member
 
Registered: Apr 2007
Distribution: Mostly Debian
Posts: 114

Original Poster
Rep: Reputation: 19
Perhaps users A and B do not want the other user changing stuff, but just be able to access the files.

On relatively the same topic, how would could I make a folder that allows a user to add files, create folders, access files, but not delete or modify anything that has been added or created?

thanks
 
Old 03-29-2008, 06:05 PM   #4
jay73
LQ Guru
 
Registered: Nov 2006
Location: Belgium
Distribution: Ubuntu 11.04, Debian testing
Posts: 5,019

Rep: Reputation: 130Reputation: 130
You would have to use the sticky bit to prevent users from removing files in that case. You can prevent writing to / modifying a file by denying members of the group write permissions on the file(s) (chmod 644, which is the default).
 
1 members found this post helpful.
Old 03-29-2008, 10:57 PM   #5
soplin
Member
 
Registered: Apr 2007
Distribution: Mostly Debian
Posts: 114

Original Poster
Rep: Reputation: 19
Thank you for the responses.
This still doesn't fix what I'm trying to do.

I'm trying to create a neutral folder, and user A and B can both create and put files into this folder. A can modify and delete A stuff and B can modify and delete B stuff. The two can do things like read files and folders, of each other's stuff if and only if they allow it.

thanks
 
Old 03-30-2008, 02:17 PM   #6
soplin
Member
 
Registered: Apr 2007
Distribution: Mostly Debian
Posts: 114

Original Poster
Rep: Reputation: 19
I found the answer to this problem. Thank you jay73!

As root, you create a folder and a group.
The owner of that folder is to be that new group.
One assigns users to that group.

chmod o+t folder
This makes it so that anyone part of that group can add, delete and write their own files and directories with their own permissions.

Wonderful!
 
  


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
cant rename desktop disk links in gnome gavyn Linux - General 1 08-30-2007 03:56 PM
KDE/Gnome links in IceWM menu Dissapeared Mina386 Linux - Newbie 1 01-09-2006 04:03 PM
Gnome: Need Help With Mounting Links Despedes Linux - Software 2 08-28-2005 10:46 AM
links (hard links and soft links..) sachitha Programming 1 08-10-2005 01:10 PM
OpenOffice gnome links... quite typical unresolved question acidjuice Slackware 5 03-03-2005 04:12 PM


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