LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices


Reply
  Search this Thread
Old 04-22-2006, 01:36 PM   #1
walterbyrd
Member
 
Registered: Apr 2004
Posts: 734

Rep: Reputation: 46
*user* setup


Debian is great, as long as I'm logged in as root. Once I log in as a user, nothing works. Certainly nothing works by default.

I am constantly having to track down, and change, various permissions, for every application: xmms, gxine, firefox, etc.

I have xmms working (I think). Gxine sort of works, but I have to go through the configuration setup everytime I run it.

I thought firefox was working, but it's not working now. Now I get this error.

"Could not set mode 0700 on private per-user gnome configuration directory `/home/walter/.gnome2_private/': Operation not permitted"


Again, everything works fine if I'm logged in as root. I have to wonder if it's productive to be so insanely restrictive with user privilegeds. I wonder how many people do the same thing as me, and just bypass the entire headache by logging in as root all the time.
 
Old 04-22-2006, 03:17 PM   #2
davcefai
Member
 
Registered: Dec 2004
Location: Malta
Distribution: Debian Sid
Posts: 863

Rep: Reputation: 45
Quote:
I have to wonder if it's productive to be so insanely restrictive with user privilegeds.
I think that most people will look at it from a diametrically opposite direction. The "insanity" is working as root.

I suspect that you are trapped in a vicious circle. You work as root so everything you do is given only root permissions. If, as root, you create a directory in ~/user then that directory will belong to root and user will not be able to access it.

Suggestion: set the ~/user directory to owner: user and group: user, include all subdirectories and files. Most of your problems will go away.
 
Old 04-22-2006, 04:45 PM   #3
walterbyrd
Member
 
Registered: Apr 2004
Posts: 734

Original Poster
Rep: Reputation: 46
>>I suspect that you are trapped in a vicious circle. You work as root so everything you do is given only root permissions.<<

Well yes, but I can't really do anything administratively as a user. As I user, I can not add software, or update, or upgrade. I have limited ability to create directories and the like. As I mentioned, as a user, it is difficult for me to even run user apps. So, of course, all of the admin work I do will be as root.

>>Suggestion: set the ~/user directory to owner: user and group: user, include all subdirectories and files. Most of your problems will go away.<<

I already set permission to 777. I can not seem to change the owner. I have tried:

chwon -R username ~/user

But, I just get a long series of messages like this:

chown: changing ownership of `/home/user': Operation not permitted

One thing I forgot to mention in my original post. My /home directory is FAT32. I dual boot, I wanted to able to access my files either OS. Could that be the problem?
 
Old 04-22-2006, 04:52 PM   #4
billymayday
LQ Guru
 
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678

Rep: Reputation: 122Reputation: 122
You will need to change the ownership to the user as root if the current owner is set to root. From there, see how you go as the user.
 
Old 04-22-2006, 04:56 PM   #5
billymayday
LQ Guru
 
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678

Rep: Reputation: 122Reputation: 122
Sorry I forgot, bu note davcefai's point about changing the group as well, or you may have problems.

I'm on Fedora, but use something like

chown -R username:group /home/username
 
Old 04-22-2006, 07:15 PM   #6
Dead Parrot
Senior Member
 
Registered: Mar 2004
Distribution: Debian GNU/kFreeBSD
Posts: 1,597

Rep: Reputation: 46
IIRC, vfat doesn't allow you to set any file access permissions, so it makes a poor file system choice for /home. If the use of vfat is absolutely necessary, then it would be much better to set a separate vfat /data partition for data files.

I've mounted vfat file systems (floppies, usb-thumbdrives) with options "user,umask=0" and I've had no problems accessing those vfat files.
 
Old 04-22-2006, 08:18 PM   #7
billymayday
LQ Guru
 
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678

Rep: Reputation: 122Reputation: 122
Sorry - missed the FAT32 comment - even on a re-read it took me a while to find it.

What doe IIRC stand for?
 
Old 04-22-2006, 10:27 PM   #8
Ray2047
Member
 
Registered: Dec 2005
Posts: 52

Rep: Reputation: 15
Quote:
Originally Posted by wmeasday
What doe IIRC stand for?
If I Recall Correctly
 
Old 04-22-2006, 11:33 PM   #9
davcefai
Member
 
Registered: Dec 2004
Location: Malta
Distribution: Debian Sid
Posts: 863

Rep: Reputation: 45
FAT32 accounts for it, in my opinion.

This is how I am set up:
My HOME directory is on an ext3 partition. Stuff I want to access from Windows (which is nowadays very little) is in a /user directory on FAT32.

The problem is that all those initialisation files and folders in your home directory have to be owned by the user. That's only possible on an ext partition.
 
Old 04-24-2006, 11:17 AM   #10
walterbyrd
Member
 
Registered: Apr 2004
Posts: 734

Original Poster
Rep: Reputation: 46
Here is my setup: my entire /home directory is fat32. Within that /home directory, I have user directories, and a "public" directory - all accessible from samba. I kinda like having /home/user directories easily accessible from the windows side, but I can live without it.

But how do I put my user directories in my linux (ext3) partition, without having to re-partition my drive?

I suppose I could login as root, umount my /home directory and name it something else. Then create a /home directory in the ext3 partiton, and move the user acounts over to that new /home directory. Should I change the run level if I do that?

What woudl I have to change?

- Samba
- /etc/fstab

What else?

Also, should I try to move the user accounts, or just delete the accounts (saving whatever data, of course), and then re-create the accounts?
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
vsftp user setup kubicon Linux - Networking 7 01-29-2004 05:17 AM
MySQL user setup pembo13 Linux - Software 5 11-23-2003 10:00 PM
Advice on user setup please pembo13 Linux - Security 8 11-18-2003 08:29 PM
setup x-windows for a new user kirky Linux - Newbie 2 04-25-2002 06:31 PM
setup X-windows for user kirky Linux - Newbie 1 04-24-2002 10:05 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian

All times are GMT -5. The time now is 10:41 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