LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 02-03-2005, 04:15 PM   #1
deiphage
LQ Newbie
 
Registered: Jan 2005
Location: Houston
Distribution: FC3 & XPSP2
Posts: 6

Rep: Reputation: 0
File owner and File group locked - root


I've been rtfming ever since I started downloading FC3, and I've solved most of my problems thus far, but this has me scratching my head...

The device is a 200gig ide drive... I have no problems reading or writing locally.

Other machines on the network can read the contents, but cannot write...

*smb.conf
[lunchbox]
path = /lunchbox
writeable = yes

*fstab:
/dev/hdc1 /lunchbox vfat users 0 0

* "security level configuration" - in the GUI
Other ports: [443:tcp, 137:udp, 138:udp, 139:tcp, 445:tcp]

On my other samba shares I had to change the ownership of the directory, but with this drive, I keep getting "Error Setting Owner" "The owner could not be changed." "Sorry, couln't change the owner of 'lunchbox'". Both the file owner and group are stuck on "root".

The other shares are just folders on hda...

Is my problem a security issue, or have I done something wrong with my user/file administration?

Also, the drive appears where I put it, /lunchbox, but it also shows up under "Computer" on the desktop. Is that autoload? Could it cause problems with changing ownership?

I am running FC3 with gnome.

Thanks in advance,

Jeff
 
Old 02-03-2005, 10:22 PM   #2
teckk
Senior Member
 
Registered: Oct 2004
Distribution: Arch
Posts: 4,586
Blog Entries: 5

Rep: Reputation: 1624Reputation: 1624Reputation: 1624Reputation: 1624Reputation: 1624Reputation: 1624Reputation: 1624Reputation: 1624Reputation: 1624Reputation: 1624Reputation: 1624
Only folders under your home folder can be shared I think.
You might want to make it in /home/yourname/lunchbox

Fedora also makes you open a konsole as super user to change certain things while you are in X. It isn't good enough to just open konsole and su to root. The path isn't there for the commands. Although you can specify it like /sbin/hdparm -d1 /dev/hda ect.
You can ctrl+F6 for another shell and su to root and do it.
chown is at /bin/chown

You might want to read the man on chown
man chown

If you mount the drive under /home you can share it.

Make a folder under home. mkdir /home/whatever
Then mount the drive to it.
mount -t vfat /dev/hdc1 /home/lunchbox users 0 0
Make the entry in your fstab to mount it auto.
 
Old 02-03-2005, 11:14 PM   #3
deiphage
LQ Newbie
 
Registered: Jan 2005
Location: Houston
Distribution: FC3 & XPSP2
Posts: 6

Original Poster
Rep: Reputation: 0
still no dice...

I have the exact same situation with /home/me/lunchbox, it won't let me change owners, or groups. In the gui, when I click on write for group and others... it unclicks them for me... I can't change the file owner, file group, or get a 777/775 - but I can take rights away... this is acting like a security issue more than anything...

I do remember reading something about issues regarding samba shares outside of the user's home directory, but I don't have any problems as long as the ownership is properly configured.

I'm logged in locally as root (for now at least), and have two desktops with terminals open, and two in the gui.

I haven't had any trouble with the mounting, or local rw access, but when I try to do a write from the client machine, nothing doing *maybe if I logon there as root... not a permanent solution, or even workable when it comes down to it...
 
Old 02-04-2005, 06:34 AM   #4
teckk
Senior Member
 
Registered: Oct 2004
Distribution: Arch
Posts: 4,586
Blog Entries: 5

Rep: Reputation: 1624Reputation: 1624Reputation: 1624Reputation: 1624Reputation: 1624Reputation: 1624Reputation: 1624Reputation: 1624Reputation: 1624Reputation: 1624Reputation: 1624
Ok I read your post more clearly this morning.

*smb.conf
[lunchbox]
path = /lunchbox
writeable = yes

I think you may need to specify the user or users who gets access.

I'm not at a Linux box, look at the examples in the smb.conf file. I think that you have to specify a user or users or public access.
 
Old 02-04-2005, 07:55 AM   #5
phlppmrtns5
LQ Newbie
 
Registered: Mar 2004
Location: madeira
Distribution: red hat 8.2
Posts: 19

Rep: Reputation: 0
solving access problem

try maybe to edit changes on gnome as root
select the folder u want to "share" and unlock it for the group you want
creating a new user group may help.

Any doubts goto: http://groups.yahoo.com/linux_dot3

or contact me through linuxphilippe@yahoo.com
 
Old 02-05-2005, 01:30 PM   #6
deiphage
LQ Newbie
 
Registered: Jan 2005
Location: Houston
Distribution: FC3 & XPSP2
Posts: 6

Original Poster
Rep: Reputation: 0
Thumbs up

The answer has been on handhelds.org for just over 3 years... stupid vfat...

Juergen Kreileder jk@blackdown.de
22 Nov 2001 05:51:25 +0100

vfat doesn't support the UNIX concepts of file ownership and
permissions. You might want to use something like [edit]

/dev/hdc1 /lunchbox vfat defaults,uid=alberto,gid=users 0 0

When I changed the entry in fstab, and restarted (stupid MS habit), it had the ownership that I wanted. Now my client PC can read AND write.

Thanks everyone for your help.
 
  


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
how to i change file owner back to root ? glacier1985 Linux - Newbie 10 06-17-2004 09:20 PM
Every file I create has a group different than root. How do I find out where this is rfelter Linux - Software 4 04-16-2004 09:28 AM
Getting the owner name of a file in C akin81 Programming 5 04-02-2004 03:36 PM
file owner on an NFS shishir Linux - Networking 4 11-30-2003 11:09 PM
file permissions and file owner won't change Nadim Slackware 5 11-29-2003 06:03 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

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