Koozali.org: home of the SME Server

A question with regard to user home directories and permissi

EmyrB

A question with regard to user home directories and permissi
« 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

Offline bpivk

  • *
  • 908
  • +0/-0
    • http://www.bezigrad.com
A question with regard to user home directories and permissi
« Reply #1 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.
"It should just work" if it doesn't report it. Thanks!

Offline CharlieBrady

  • *
  • 6,918
  • +3/-0
A question with regard to user home directories and permissi
« Reply #2 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.

Offline bpivk

  • *
  • 908
  • +0/-0
    • http://www.bezigrad.com
A question with regard to user home directories and permissi
« Reply #3 on: January 18, 2007, 08:25:11 PM »
Well i never tryed with home directory. I use webshare contrib and folders.  :)
"It should just work" if it doesn't report it. Thanks!

EmyrB

A question with regard to user home directories and permissi
« Reply #4 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

Offline raem

  • *
  • 3,972
  • +4/-0
A question with regard to user home directories and permissi
« Reply #5 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
...

Offline CharlieBrady

  • *
  • 6,918
  • +3/-0
A question with regard to user home directories and permissi
« Reply #6 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.

EmyrB

A question with regard to user home directories and permissi
« Reply #7 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.

Offline imcintyre

  • *
  • 609
  • +0/-0
A question with regard to user home directories and permissi
« Reply #8 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.

Offline bpivk

  • *
  • 908
  • +0/-0
    • http://www.bezigrad.com
A question with regard to user home directories and permissi
« Reply #9 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.
"It should just work" if it doesn't report it. Thanks!

Offline cactus

  • *
  • 4,880
  • +3/-0
    • http://www.snetram.nl
A question with regard to user home directories and permissi
« Reply #10 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
Be careful whose advice you buy, but be patient with those who supply it. Advice is a form of nostalgia, dispensing it is a way of fishing the past from the disposal, wiping it off, painting over the ugly parts and recycling it for more than its worth ~ Baz Luhrmann - Everybody's Free (To Wear Sunscreen)

Offline raem

  • *
  • 3,972
  • +4/-0
A question with regard to user home directories and permissi
« Reply #11 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.
...

Offline imcintyre

  • *
  • 609
  • +0/-0
A question with regard to user home directories and permissi
« Reply #12 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