LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
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 01-28-2003, 03:39 AM   #16
MasterC
LQ Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu ; CentOS ; Raspbian
Posts: 12,613

Rep: Reputation: 69

Did you do anything odd? Check /etc/passwd to make sure root is uid 0 still.

When you say anything, do you mean not just this directory and it's contents, but anything on your system?

Is this on RH?
 
Old 01-28-2003, 03:46 AM   #17
MasterC
LQ Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu ; CentOS ; Raspbian
Posts: 12,613

Rep: Reputation: 69
lsattr /path/to/files

Show us what that brings up.
 
Old 01-28-2003, 03:46 AM   #18
face_master
Member
 
Registered: Jan 2003
Location: Australia
Distribution: Mandrake 9.1
Posts: 71

Original Poster
Rep: Reputation: 16
I only checked this dir, but im pretty sure thats it.

root uid is zero:
Quote:
root:x:0:0:root:/root:/bin/bash
Any other settings I should be aware of? Do you think i'll have to reinstall?
 
Old 01-28-2003, 03:48 AM   #19
face_master
Member
 
Registered: Jan 2003
Location: Australia
Distribution: Mandrake 9.1
Posts: 71

Original Poster
Rep: Reputation: 16
any files/folders in mnt it tells me:
Quote:
lsattr: Invalid argument While reading flags on <whatever>
 
Old 01-28-2003, 03:52 AM   #20
MasterC
LQ Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu ; CentOS ; Raspbian
Posts: 12,613

Rep: Reputation: 69
No, I don't think you'll have to reinstall. I'm assuming that since you have them under /mnt that they are on a seperate device/partition than the rest of your system. What did you mount this device/partition with? If you've got a referring entry in /etc/fstab for this mount point, please post it.

Cool
 
Old 01-28-2003, 03:53 AM   #21
MasterC
LQ Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu ; CentOS ; Raspbian
Posts: 12,613

Rep: Reputation: 69
What does 'mount' give you?

Also, if this is a removable device, what type is it? And what filesystem did you use to mount it?
 
Old 01-28-2003, 03:55 AM   #22
face_master
Member
 
Registered: Jan 2003
Location: Australia
Distribution: Mandrake 9.1
Posts: 71

Original Poster
Rep: Reputation: 16
just with the mount command in terminal

mount -t vfat /dev/hda5 /mnt/e

And thats it, did I forget to do something?

Btw, yes this is in RH (8.0)
 
Old 01-28-2003, 03:56 AM   #23
Mik
Senior Member
 
Registered: Dec 2001
Location: The Netherlands
Distribution: Ubuntu
Posts: 1,316

Rep: Reputation: 47
Well you said it's a partition of another harddrive then the one running linux. Does that mean that it's also a different partition type like maybe FAT32. Because FAT32 can't handle permissions per file so you have to set default permissions for the whole partition. You can do that by editing the /etc/fstab file.

/dev/hda1 /mnt/c vfat defaults,uid=500,gid=500,noexec,nodev,nosuid,umask=002

This would make all the files on the partition owned by user-id 500 and group-id 500. The umask tells it to make all file permissions 775. Those are the most important ones which you have to play with.
 
Old 01-28-2003, 03:56 AM   #24
face_master
Member
 
Registered: Jan 2003
Location: Australia
Distribution: Mandrake 9.1
Posts: 71

Original Poster
Rep: Reputation: 16
Its a FAT partition of my main windows c HD
 
Old 01-28-2003, 03:59 AM   #25
MasterC
LQ Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu ; CentOS ; Raspbian
Posts: 12,613

Rep: Reputation: 69
Ahhh, yes. We now see the problem I should have thought of this when you first mentioned /mnt

Yeah, you will need to also add a umask to be able to write to a fat32 filesystem. If you only want root to be able to write to it, a umask=022 will be sufficient.

I'd suggest doing this in /etc/fstab as this will make it easier for future use, so try an entry like this:
/dev/hda5 /mnt/e vfat users,auto,umask=022,rw 0 0

Then unmount and remount the drive with:
mount -a -o remount

This will unmount and mount the drive with the new permissions.



Cool
 
Old 01-28-2003, 04:03 AM   #26
face_master
Member
 
Registered: Jan 2003
Location: Australia
Distribution: Mandrake 9.1
Posts: 71

Original Poster
Rep: Reputation: 16
what umask do I specify if I want all users to access it?
 
Old 01-28-2003, 04:11 AM   #27
MasterC
LQ Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu ; CentOS ; Raspbian
Posts: 12,613

Rep: Reputation: 69
If you want all users to have full r/w/x access a umask of 000 is equivilent to a chmod of 777.

Cool
 
Old 01-28-2003, 04:16 AM   #28
face_master
Member
 
Registered: Jan 2003
Location: Australia
Distribution: Mandrake 9.1
Posts: 71

Original Poster
Rep: Reputation: 16
still dont have write permission...I have changed the fstab file like you told me and I remounted like you told me
 
Old 01-28-2003, 04:17 AM   #29
MasterC
LQ Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu ; CentOS ; Raspbian
Posts: 12,613

Rep: Reputation: 69
Subtract it. That's the easiest way to look at it. If you want to have something with a chmod of 555, then subtract it from 777, and that's your umask. So a chmod 555 is equal to a umask 222

HTH
 
Old 01-28-2003, 04:17 AM   #30
face_master
Member
 
Registered: Jan 2003
Location: Australia
Distribution: Mandrake 9.1
Posts: 71

Original Poster
Rep: Reputation: 16
still getting same errors. Something is so foked up here

// wait i just read ur last post, let me try it

Last edited by face_master; 01-28-2003 at 04:18 AM.
 
  


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
chmod problem with proftpd kwickcut Mandriva 3 02-13-2005 11:36 PM
What can we do if we type chmod ugo-x /bin/chmod ?????? bunny123 Linux - Software 3 02-01-2005 08:53 PM
CHMOD in shell : chmod 777 /usr/ <---is that right? cpanelskindepot Programming 5 07-16-2004 05:37 AM
CHMOD problem michn77 Linux - Newbie 0 02-12-2004 05:15 AM
chmod possible problem unimaginative Linux - General 4 01-01-2004 06:28 PM

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

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