LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Desktop (https://www.linuxquestions.org/questions/linux-desktop-74/)
-   -   How do I *automatically* set alternative default folder permissions in Ubuntu? (https://www.linuxquestions.org/questions/linux-desktop-74/how-do-i-%2Aautomatically%2A-set-alternative-default-folder-permissions-in-ubuntu-768112/)

lwasserm 11-12-2009 03:31 PM

Building on what exvor has said, a group can be designated for file sharers. A user can then create a subdirectory in his $HOME, and set the group to the sharers group. If the setgid bit is set on this directory, files created there will also have the same group. Then anyone in the sharers group can access another users shared directory and its files.

S.Lowhand 11-13-2009 04:16 AM

Quote:

Originally Posted by lwasserm (Post 3754720)
Building on what exvor has said, a group can be designated for file sharers. A user can then create a subdirectory in his $HOME, and set the group to the sharers group. If the setgid bit is set on this directory, files created there will also have the same group. Then anyone in the sharers group can access another users shared directory and its files.

lwasserm,

Hmmm... I guess this is the most practical way forward. Shame it can't be done in a cleaner fashion though. It's quite a big ask for a newb.

I'm going to implement this asap. May have to come back for more detailed help :-)

S

S.Lowhand 11-13-2009 04:21 AM

Quote:

Originally Posted by evo2 (Post 3752656)
It's 755 not 777. Others can read, not write.

There are many things that Ubuntu does that I consider weird, but to me this one seems pretty normal.

Evo2.

evo2,

You don't think it's weird that all and sundry can wonder around inside your account and check out anything they wish to have a look at !?! :-)

I also don't get the logic behind specifically naming a directory 'Public' when all folders are public. It's really counter-intuitive for a Win-convert.

Anyway... I'm getting on my hobby-horse...

Really appreciate all the kind suggestions given.

S

evo2 11-13-2009 04:52 AM

Quote:

Originally Posted by S.Lowhand (Post 3755306)
evo2,

You don't think it's weird that all and sundry can wonder around inside your account and check out anything they wish to have a look at !?! :-)

No I really don't. If you are worried about that, then you can lock the door and close the curtains. I guess I come from a different background. The first computers I used didn't have user accounts or passwords: Apple 2e, dos machines etc. Anyone could just boot them up and do whatever they wanted.

The next machines I used were DEC Alpha. These were mutli user machines, workstations and servers that you connected to with XTerminals. You data was safe from being corrupted by others since you had your own account and only you or the sys admin could modify your files. Why hide your files by default? They were never hidden on the old single user operating systems.

If for some reason you did have something to hide, you could hide it. And if you really wanted to hide it so even the sys adim couldn't see it you pgp encrypt it.

Quote:

I also don't get the logic behind specifically naming a directory 'Public' when all folders are public. It's really counter-intuitive for a Win-convert.
Oh, that's so that other users know exactly where to look when you have something specific you want them to see. Much easier than having to tell them exactly where it is.

Cheers,

Evo2.

S.Lowhand 11-14-2009 03:32 AM

evo2,
Quote:

Originally Posted by evo2 (Post 3755331)
No I really don't. If you are worried about that, then you can lock the door and close the curtains. I guess I come from a different background. The first computers I used didn't have user accounts or passwords: Apple 2e, dos machines etc. Anyone could just boot them up and do whatever they wanted.

The next machines I used were DEC Alpha. These were mutli user machines, workstations and servers that you connected to with XTerminals. You data was safe from being corrupted by others since you had your own account and only you or the sys admin could modify your files. Why hide your files by default? They were never hidden on the old single user operating systems.

If for some reason you did have something to hide, you could hide it. And if you really wanted to hide it so even the sys adim couldn't see it you pgp encrypt it.


Oh, that's so that other users know exactly where to look when you have something specific you want them to see. Much easier than having to tell them exactly where it is.

Cheers,

Evo2.

I guess that's it really. It's what you're used to. I started with computers using Mac OS7, which, as you say, is an environment where anyone who boots the box controls it completely.

These days people are brought up on multi-user boxes, Windows primarily, which consider privacy as important as security. I personally think this is a sensible approach.

*Given* that the modern approach is that things are private by default, I feel the Linux way is out of sync and is, to me at least, a major hindrance to wider adoption by the Windows crowd. Things move on. If Linux is to be seen to be an OS for non-geeks, it needs to take on board some of the basic expectations users have these days. (No, I don't mean expectations regarding crashes and Viruses ;-)

BTW, you've really put me out of considerable misery by explaining the 'Public' folder naming. I still think it's crazy but at least I can see *some* logic there :-)

S

mwildam 11-14-2009 04:42 AM

Quote:

Originally Posted by S.Lowhand (Post 3756692)
*Given* that the modern approach is that things are private by default, I feel the Linux way is out of sync and is, to me at least, a major hindrance to wider adoption by the Windows crowd.

My experience is that at home when switching to Linux a few years ago I had more issues with files being not available (mostly just not editable). Before on our home PC with Windows all the fotos and other files were in a "work" folder which was full accessible for everyone. Folders you create on C:\ for instance have full access for everyone by default on Windows (at least it used to be on XP and earlier).

Quote:

Originally Posted by S.Lowhand (Post 3756692)
Things move on. If Linux is to be seen to be an OS for non-geeks, it needs to take on board some of the basic expectations users have these days. (No, I don't mean expectations regarding crashes and Viruses ;-)

I agree with you partly only. For instance I really don't want Linux to adopt some Windows GUI "features" just because people expect such a behaviour. - People often expect a particular behaviour just because they are (already) used to it (why I am just remembering the nonsense of the need to click on "Start" to shut down the computer...).

Quote:

Originally Posted by S.Lowhand (Post 3756692)
BTW, you've really put me out of considerable misery by explaining the 'Public' folder naming. I still think it's crazy but at least I can see *some* logic there :-)

Apart from the strange "Public" folder naming I start to like that default security.

Usually I only have a few private stuff - that is basically my PGP private keys - hey and guess what - I noticed that they have not the world readable attributes. So it seems that is quite ok.

But: I think in an office where probably several secretaries are sharing the same PC things are a little different. But company IT will get the security changed in such cases...

S.Lowhand 11-17-2009 03:51 AM

mwildam,

Quote:

Originally Posted by mwildam (Post 3756731)
My experience is that at home when switching to Linux a few years ago I had more issues with files being not available (mostly just not editable). Before on our home PC with Windows all the fotos and other files were in a "work" folder which was full accessible for everyone. Folders you create on C:\ for instance have full access for everyone by default on Windows (at least it used to be on XP and earlier).

I can't speak for Windows but on my OSX box there is a 'Shared' folder. Anything that you want to share you drop in there. Simple.

Quote:

I agree with you partly only. For instance I really don't want Linux to adopt some Windows GUI "features" just because people expect such a behaviour. - People often expect a particular behaviour just because they are (already) used to it (why I am just remembering the nonsense of the need to click on "Start" to shut down the computer...).
Definitely with you there :-) The list of Windows/OSX features which Linux can learn from is pretty short but I really do think the privacy aspect is on there.

Quote:

Apart from the strange "Public" folder naming I start to like that default security.

Usually I only have a few private stuff - that is basically my PGP private keys - hey and guess what - I noticed that they have not the world readable attributes. So it seems that is quite ok.
I just can't see why good security/privacy is mutually exclusive to ease of sharing and 'Having documents available'. It's as simple as having Private Homes and a 'Shared' Folder.

At the moment we get an extreme where anyone can look at anything, unless you are savvy enough to make the changes necessary. Most people aren't that savvy and I personally don't think they should have to be as it would be so simple to have a setup which covers all the bases.

In this day and age I think it's madness to assume a 'Safe Environment', as is the present case. I would personally veer towards as 'As secure/private as is reasonably possible' as a default. Of course it's easy to become an extremist there as well ;-)

S


All times are GMT -5. The time now is 03:54 PM.