LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux > Linux - Desktop
User Name
Password
Linux - Desktop This forum is for the discussion of all Linux Software used in a desktop context.

Notices

Reply
 
Thread Tools
Old 11-08-2009, 06:09 AM   #16
S.Lowhand
LQ Newbie
 
Registered: Jul 2009
Posts: 14
Thanked: 0

[Log in to get rid of this advertisement]
Quote:
Originally Posted by mattydee View Post
Hi S.Lowhand,

EDIT: I may have misunderstood your question. If you want all this to happen by default when you create a new user, then you would probably want to modify the adduser script, which is probably located in /usr/sbin/
mattydee,

I wasn't being very clear...

I was trying to find a way to automate the process of setting 'Proper' permissions on my box whenever a new account is created.

People sometimes ask me to help them with computer related issues and I always suggest they just install Ubuntu and be done with Windows. If they subsequently find out about the odd default permissions I feel they will lose confidence in Linux in general.

Sadly I'm not sufficiently versed in Linux to work these things out for myself, yet :-)

Can you help me along the way to modifying the aduser script, anyone? I actually thought solving my issue relied on ACL as well...?

Slow
macos S.Lowhand is offline     Reply With Quote
Old 11-08-2009, 08:55 AM   #17
mattydee
Member
 
Registered: Dec 2006
Location: Vancouver, BC
Distribution: Slackware sans KDE4 (Gnome Slackbuild)
Posts: 444
Thanked: 6

Original Poster
Quote:
Originally Posted by S.Lowhand View Post
mattydee,
Can you help me along the way to modifying the aduser script, anyone? I actually thought solving my issue relied on ACL as well...?
Slow
It looks like Ubuntu uses the adduser script as well:
https://help.ubuntu.com/8.04/serverg...anagement.html

EDIT:
It looks like what you need is in /etc/adduser.conf

Change the line
DIR_MODE=0755
to
DIR_MODE=0700
or something similar

Last edited by mattydee; 11-08-2009 at 09:00 AM..
linux mattydee is offline     Reply With Quote
Old 11-09-2009, 03:12 AM   #18
mwildam
Member
 
Registered: Sep 2006
Location: Vienna, Austria
Distribution: Fedora Core 5
Posts: 51
Thanked: 0
Quote:
Originally Posted by S.Lowhand View Post
Can you help me? I'm a bit of a Ubuntu evangelist and don't want a prospective Windows convert to think I'm nuts for recommending an OS which has such odd defaults.
At least Fedora 9 (which is not the current version) has the same default permissions as Ubuntu.

I am not sure if this is really a bad default. At least it is the most secure default to avoid accidentally publishing unwanted data to others.

There are features at least on Ubuntu at the Gnome desktop for easy folder sharing - however I did not test so far, what is done behind the scenes on the permission level when I do this.
linuxubuntu mwildam is offline     Reply With Quote
Old 11-09-2009, 03:43 AM   #19
S.Lowhand
LQ Newbie
 
Registered: Jul 2009
Posts: 14
Thanked: 0
Quote:
Originally Posted by mattydee View Post
It looks like Ubuntu uses the adduser script as well:
https://help.ubuntu.com/8.04/serverg...anagement.html

EDIT:
It looks like what you need is in /etc/adduser.conf

Change the line
DIR_MODE=0755
to
DIR_MODE=0700
or something similar
mattydee,

As I say, I'm a total newb here but won't this approach kill 'Sharing'?

I was hoping we might be able to come up with an elegant solution to end up with OSX-like final setup.

It's probably a fiddly process otherwise someone would have done it ages ago... :-)

S
macos S.Lowhand is offline     Reply With Quote
Old 11-09-2009, 03:46 AM   #20
S.Lowhand
LQ Newbie
 
Registered: Jul 2009
Posts: 14
Thanked: 0
Quote:
Originally Posted by mwildam View Post
At least Fedora 9 (which is not the current version) has the same default permissions as Ubuntu.

I am not sure if this is really a bad default. At least it is the most secure default to avoid accidentally publishing unwanted data to others.
mwildam,

You're making me think I have completely misunderstood the defaults...

I was under the impression the default permissions for a newly created account was that everything is world-readable. No?

In which case, how does it prevent me from 'accidentally publishing unwanted data to others'?

S
macos S.Lowhand is offline     Reply With Quote
Old 11-09-2009, 04:06 AM   #21
mwildam
Member
 
Registered: Sep 2006
Location: Vienna, Austria
Distribution: Fedora Core 5
Posts: 51
Thanked: 0
Quote:
Originally Posted by S.Lowhand View Post
I was under the impression the default permissions for a newly created account was that everything is world-readable. No?

In which case, how does it prevent me from 'accidentally publishing unwanted data to others'?
Sorry, you are completely right!
I spent a lot of time at the weekend installing a server and managing security and I somehow was (after too less sleep) still thinking about that. Sorry for the confusion!

I mean the default is not so bad because by default it is ensured that nobody is modifying data you created.
linuxubuntu mwildam is offline     Reply With Quote
Old 11-09-2009, 01:29 PM   #22
mattydee
Member
 
Registered: Dec 2006
Location: Vancouver, BC
Distribution: Slackware sans KDE4 (Gnome Slackbuild)
Posts: 444
Thanked: 6

Original Poster
S.Lowhand:

Not that I don't want to help you, but since you need help with a custom Ubuntu setup, something that's completely unrelated to the thread topic, why don't you start another thread and link to it here. I will try to answer your questions there and it will also probably get more exposure.
linux mattydee is offline     Reply With Quote
Old 11-10-2009, 03:53 AM   #23
S.Lowhand
LQ Newbie
 
Registered: Jul 2009
Posts: 14
Thanked: 0
Quote:
Originally Posted by mattydee View Post
S.Lowhand:

Not that I don't want to help you, but since you need help with a custom Ubuntu setup, something that's completely unrelated to the thread topic, why don't you start another thread and link to it here. I will try to answer your questions there and it will also probably get more exposure.
mattydee,

Shows what a Newb I am that I thought my issue was related to your original thread... :-)

I started a new thread here:
http://www.linuxquestions.org/questi...2/#post3751309

Really appreciate any help you can give

Slow
macos S.Lowhand is offline     Reply With Quote

Reply

Bookmarks


Thread Tools

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
Automatically set permissions of new files created within a specific folder Lorian Linux - Desktop 2 03-03-2007 04:17 PM
Default permissions of files and folder maginotjr Slackware 2 07-29-2005 04:52 AM
How to set permissions for newly created dirs? z-vet Linux - General 2 12-04-2004 09:06 AM
permissions for newly created files dialbat Linux - General 2 10-04-2004 03:58 PM
default files and folder acl permissions Baltasar Fedora 4 08-30-2004 01:50 PM


All times are GMT -5. The time now is 01:51 AM.

Main Menu
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
RSS2  LQ Podcast
RSS2  LQ Radio
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration