LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 01-08-2005, 04:17 PM   #1
Mr. New
Member
 
Registered: Oct 2004
Distribution: Kubuntu and Mac OS X
Posts: 80

Rep: Reputation: 15
Can't add users!


I have a problem, I try to add a user but when I do
this happens

Adding user `matt'...
Adding new group `matt' (1000).
Adding new user `matt' (1000) with group `matt'.
Creating home directory `/home/matt'.
chown 1000:1000 /home/matt: Operation not permitted
Cleaning up.
Removing directory `/home/matt'
Removing user `matt'.
Removing group `matt'.
groupdel: group matt does not exist

this is a huge problem the only user I have is root! if it matters /home is on a different partition then /, its a fat32 partition if that matters

Last edited by Mr. New; 01-08-2005 at 04:19 PM.
 
Old 01-08-2005, 04:24 PM   #2
Louis_Carole
Member
 
Registered: Feb 2004
Location: Oxford, OH
Distribution: LFS 5.1.1, Slackware 9.1
Posts: 94

Rep: Reputation: 15
Dear Mr. New,

If you're familiar with the command line, try:

# mkdir /home/matt
# useradd -d /home/matt -s /bin/bash matt
# chown matt:users /home/matt

Note: this does not create a matt group.

Good luck.

- Ben
 
Old 01-08-2005, 04:54 PM   #3
Mr. New
Member
 
Registered: Oct 2004
Distribution: Kubuntu and Mac OS X
Posts: 80

Original Poster
Rep: Reputation: 15
Quote:
Originally posted by Louis_Carole
Dear Mr. New,

If you're familiar with the command line, try:

# mkdir /home/matt
# useradd -d /home/matt -s /bin/bash matt
# chown matt:users /home/matt

Note: this does not create a matt group.

Good luck.

- Ben
It won't let me change ownership of /home/matt I was logged on as root, heres what It said-

changing ownership of `/home/matt': Operation not permitted
 
Old 01-08-2005, 05:23 PM   #4
Dark_Helmet
Senior Member
 
Registered: Jan 2003
Posts: 2,786

Rep: Reputation: 374Reputation: 374Reputation: 374Reputation: 374
Quote:
Originally posted by Mr. New
/home is on a different partition then /, its a fat32 partition if that matters
Bad news: it very much matters. The Fat32 filesystem does not support permissions. That means the attempt to change ownership and permissions will fail everytime. If you want to create a partition that is readable by both windows and linux, then I would suggest creating a partition, formating it as FAT32, and then mounting it somewhere such as /home/windows_share. If you're not trying to share a partition, then dump Fat32 like a hot potato.

You can work around this problem is you absolutely must, but it will be more pain than it's worth... trust me.
 
Old 01-08-2005, 05:24 PM   #5
Mr. New
Member
 
Registered: Oct 2004
Distribution: Kubuntu and Mac OS X
Posts: 80

Original Poster
Rep: Reputation: 15
well, since I'm not really using that partition can I reformat and change it?
 
Old 01-08-2005, 05:29 PM   #6
Dark_Helmet
Senior Member
 
Registered: Jan 2003
Posts: 2,786

Rep: Reputation: 374Reputation: 374Reputation: 374Reputation: 374
Sure. From the command line, execute these commands:

umount /home
mkfs.ext3 /dev/hd??
mount -t ext3 /dev/hd?? /home


Obviously, you'll need to replace hd?? with the apropriate drive and partition number for your /home partition. Then you can create the /home/matt directory and change permissions.

NOTE: you may also need to change your /etc/fstab. Open it up in a text editor, look for a line that looks like:
Code:
/dev/hd??      /home     vfat  ...
The key thing is the vfat. Change it to ext3 and save. If you're not sure, just post the whole contents of /etc/fstab and I'll help you make the necessary change.

Last edited by Dark_Helmet; 01-08-2005 at 05:32 PM.
 
Old 01-08-2005, 06:27 PM   #7
Mr. New
Member
 
Registered: Oct 2004
Distribution: Kubuntu and Mac OS X
Posts: 80

Original Poster
Rep: Reputation: 15
I changed a few things I decided I'll keep it but change it to /home/windows for windows and linux to share I just put that in fstab created that directory and it worked
 
Old 01-08-2005, 08:05 PM   #8
Louis_Carole
Member
 
Registered: Feb 2004
Location: Oxford, OH
Distribution: LFS 5.1.1, Slackware 9.1
Posts: 94

Rep: Reputation: 15
Dear Mr. New,

I apologize for not reading your initial post more thoroughly. I didn't see that FAT32 part

If you do decide to remove your FAT partition, I have one confused word of warning. I had problems with lilo when I tried removing windows; I don't know exactly why. Be very sure to have a debian boot disk availabe.

- Ben
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Add new users dweeb Linux - Newbie 5 06-22-2005 04:03 AM
I can't add users to "samba users" in control center g_jakes Linux - Security 3 05-20-2005 02:10 PM
can't add users to "samba users" in control center g_jakes Linux - Networking 1 05-20-2005 01:28 PM
can't add users to "samba users" in control center g_jakes Linux - Wireless Networking 1 05-20-2005 01:27 PM
can't add users harikannanmk Linux - General 0 12-12-2003 10:35 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 08:35 AM.

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