LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 07-01-2007, 03:33 AM   #1
rm_-rf_windows
Member
 
Registered: Jun 2007
Location: Europe
Distribution: Ubuntu
Posts: 292

Rep: Reputation: 27
Default user configuration: Where are these files?


In Mandriva (for example), home directory default permissions are 755, which means that users can access other users' files and folders! I know how to change permissions - chmod, chown, chgrp - however, how can I change the default settings so that, for example, home folders are set to 750 instead of 755.

That's my first question, and this leads me to a more general question. Where are the configuration files for setting user defaults? As a pseudo-administrator at home, I'd like to be able to set up the household default user accounts to reflect the use which will be made of them (links, desktop settings, permissions, groups, network settings, etc.)

And, conversely, does anyone know of a good HowTo or tutorial on setting individual user settings (hidden files in home directories)? Perhaps a site which explains, in a simple and clear way, how user configuration files work?

Many thanks.
 
Old 07-01-2007, 07:04 AM   #2
reddazz
LQ Guru
 
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298

Rep: Reputation: 77
For default permissions on home directories, take a look at "umask" (man umask). Changing the umask value will only affect new accounts, so for existing accounts, you would need to change the permissions using chmod.

User defaults are usually set globally or in hidden files located in /etc/skel. The files in /etc/skel are copied to a users home directory when their account is created (unless overidden by the admin). Unfortunately I don't know a tutorial that can help you.
 
Old 07-01-2007, 07:43 AM   #3
rm_-rf_windows
Member
 
Registered: Jun 2007
Location: Europe
Distribution: Ubuntu
Posts: 292

Original Poster
Rep: Reputation: 27
reddazz,

Thanks for your reply. I do remember reading about the skel directory, however, in Mandriva, when I have a look this is what I get:
Code:
[linux@localhost ~]$ cd /etc/skel
[linux@localhost skel]$ ls
tmp/
[linux@localhost skel]$ cd tmp
bash: cd: tmp: Permission non accordée
[linux@localhost skel]$ su
Mot de passe :
[root@localhost skel]# cd tmp
[root@localhost tmp]# ls
[root@localhost tmp]#
[root@localhost skel]# ls -a
./  ../  .bash_logout  .bash_profile  .bashrc  .screenrc  tmp/
[root@localhost skel]# less .bash_profile
[root@localhost skel]# less .bashrc
[root@localhost skel]# less .screenrc
[root@localhost skel]# less .bash_logout
[root@localhost skel]#
There must be more configuration files than that, aren't there? I'll have a look at "man umask" too.

Thanks for the tips. I'm going to do a little more Googling and reading and report back once I've done a little more research.

I think you've put me on the right track.
 
  


Reply



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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
default configuration of tcsh paferrat Linux - Newbie 3 06-21-2006 02:23 AM
default kde user configuration? m_yates Linux - Software 2 11-24-2005 11:54 AM
setting default files for /home/user Strixy Linux - Software 7 07-16-2005 02:22 AM
default 2.4.22 kernel configuration ??? qwijibow Linux - Software 5 11-11-2003 08:56 AM
modifying configuration files while logged in as a regular user jgallas Linux - Security 3 08-13-2003 10:31 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 05:28 PM.

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
Open Source Consulting | Domain Registration