Koozali.org: home of the SME Server

Obsolete Releases => SME Server 7.x => Topic started by: EmyrB on January 18, 2007, 06:03:56 PM

Title: A question with regard to user home directories and permissi
Post by: EmyrB on January 18, 2007, 06:03:56 PM
Hi all,

I have just put in my very 1st Linux server for a small business with 5 users.

Just a few quick questions: -

Where are the users home folders on the system?
Where are the i-bay folders?
They have a user who is away on maternity and under Windows all the other users had access to her folder. How do I do this under Linux? I have a feeling it is to do with chmod, but as I don't know where the user folders are (they don't appear under /home).

Anyway thanks in advance for any help

Cheers

EmyrB
Title: A question with regard to user home directories and permissi
Post by: bpivk on January 18, 2007, 06:22:55 PM
Where are the users home folders on the system?
They are under /home/e-smith/files/users/

Where are the i-bay folders?
They are under /home/e-smith/files/ibays/

They have a user who is away on maternity and under Windows all the other users had access to her folder. How do I do this under Linux?
You could do it with a symlink.
Title: A question with regard to user home directories and permissi
Post by: CharlieBrady on January 18, 2007, 07:55:41 PM
Quote from: "bpivk"

They have a user who is away on maternity and under Windows all the other users had access to her folder. How do I do this under Linux?
You could do it with a symlink.


No, you cannot. No matter what symlinks exist, permissions will still keep home directories private.

The correct answer to the original poster is to use ibays for any shared information. Stuff in home directories is always private.
Title: A question with regard to user home directories and permissi
Post by: bpivk on January 18, 2007, 08:25:11 PM
Well i never tryed with home directory. I use webshare contrib and folders.  :)
Title: A question with regard to user home directories and permissi
Post by: EmyrB on January 19, 2007, 01:47:18 PM
Thanks for the info guys, but surely I can chmod the permissions on her home folder so the others can see it?

Would there be any other way, apart from copying all her data to an i-bay and then when she comes back copy the data back to her home folder?

Thanks in advance again

EmyrB
Title: A question with regard to user home directories and permissi
Post by: raem on January 19, 2007, 02:47:46 PM
EmyrB

>...surely I can chmod the permissions on her home folder so the others can see it?

This howto may be useful, but you will still need to do something about permissions/ownership, depending who and how you want people to access files.
eg try
chown user:group *

http://mirror.contribs.org/smeserver/contribs/rmitchell/smeserver/howto/User%20Home%20directories%20access%20by%20Administrator%20HOWTO%20for%20sme%20server.htm
Title: A question with regard to user home directories and permissi
Post by: CharlieBrady on January 19, 2007, 05:00:11 PM
Quote from: "EmyrB"

Would there be any other way, apart from copying all her data to an i-bay and then when she comes back copy the data back to her home folder?


Move the data which needs shared access to an i-bay. It won't need to be copied back when she returns, since it's not private data. You can control access to it by group membership.
Title: A question with regard to user home directories and permissi
Post by: EmyrB on January 24, 2007, 04:10:51 PM
Hi guys,

I followed CharlieBrady's advice in the end and set up an i-bay for the user that is on maternity and pointed her "My Documents" to it in Windows and gave the i-bay write permission for everybody. When she comes back from maternity I will add her to a group that only has access to that i-bay.
Title: A question with regard to user home directories and permissi
Post by: imcintyre on January 29, 2007, 10:03:58 PM
I have a question about the user home folders. While doing a back up of our work server, I came across some personal "inappropriate" material in an i-bay. Not a big problem just a lot of space taken up with shite. So after removing and cautioning, I wondered what was going on in the home folders that people have. We always use i-bays for everything.

How do you keep track of the home folders without having to putty in as root and look around?

We don't use mp3, wav, mp4 or similar files a lot. Can you search for file types easily.

Thx for any advice you can offer.
Title: A question with regard to user home directories and permissi
Post by: bpivk on January 29, 2007, 10:46:42 PM
Well the easyest way to check home dir is with putty. I can log into dirs trough lan but only for one user at a time so it's wery time consuming.

I use locate for searching for files.
Title: A question with regard to user home directories and permissi
Post by: cactus on January 29, 2007, 11:08:09 PM
Quote from: "bpivk"
Well the easyest way to check home dir is with putty. I can log into dirs trough lan but only for one user at a time so it's wery time consuming.

I use locate for searching for files.

Or you could move to the home folders top folder and issue commands like this:
Code: [Select]
find -type f -iname *.dat -exec rm {} \;
Be carefull this will delete all files with the extension .dat and is case insensitive so it wil also remove files with the extension .dAt or .DAT
Title: A question with regard to user home directories and permissi
Post by: raem on January 30, 2007, 07:12:35 AM
imcintyre

> How do you keep track of the home folders without having to putty in as root and look around?

You could try the howto I posted earlier in this thread.
I'd suggest logging in to your workstation as admin to allow access.
Title: A question with regard to user home directories and permissi
Post by: imcintyre on January 30, 2007, 02:35:43 PM
RayMitchell;

Thx for the link, I will give it a go and if I have trouble due to my extreme noonbness, I will reply here.

Ian