FAQ   Search   Memberlist  
Profile    Log in to check your private messages    Register    Log in
disk permissions
Goto page 1, 2  Next
 
Post new topic   Reply to topic    BLAG Forum Index -> support
View previous topic :: View next topic  
Author Message
shabene
PostPosted: Sat Jul 17, 2004 10:06 am    Post subject: disk permissions Reply with quote

hi,
i have set up my systen with two drives, one win2k for work that as yet i cant do in linux and the other drive partitioned for blag and vfat, so that i can transfer info between operating systems. what i want to do is set up the vfat partition so i can both read and write to it as a normal user, for the life of me i cant find a way to do this through x, is it possible?

cheers for any pointers

arrowhead
PostPosted: Sat Jul 17, 2004 6:17 pm    Post subject: Reply with quote

Hi shabene,
I am new to linux myself but I have my system setup very similar to what you want. I mounted my "shared partition" in BLAG 10k following these simple instructions in the RedHat docs,
http://www.redhat.com/docs/manuals/linux/RHL-9-Manual/getting-started-guide/s1-q-and-a-windows.html
You have to use a console rather than x but if I can do it anyone can :)

David

shabene
PostPosted: Sun Jul 18, 2004 9:46 am    Post subject: Reply with quote

cheers for the pointers but i think i failed to explain fully, during the blag install i pointed to the vfat partition so that it is automatically mounted at boot, i can access this drive as normal user or root but i can only write to it as root, if i try to change the disks permissions (right click menu) the changes i make just revert back after a second or two, if i try to change the owner of the disk it tells me i do not have permission (still as root), so is there a way of changing the owner of a disk?
TSS_Killer
PostPosted: Sun Jul 18, 2004 1:55 pm    Post subject: Reply with quote

I think there's a section about that in the BLAG wiki. http://wiki.blagblagblag.org/Mounting_Windows_Drives

Oh you wanted to change the owner of the disk. just click on the mounted winbloz folder and click properties and change root to your username.

shabene
PostPosted: Sun Jul 18, 2004 5:18 pm    Post subject: Reply with quote

i shall try and explain more clearly. i have a shared partition (vfat) on my blag drive, i set this up during blag install so it is mounted automatically at boot, this was an existing partition and was not formatted by blag as it held my odds and ends on it.

as a user i can read the drive but not write to it, as root user i may read and write, as root i have access to the right click menu to change permissions, but as i click the box to change the permission to "group write" the x just fades away instantly, if i try to change the file owner i am told "sorry couldnt change the owner" and if i try to change the file group it says "you don't have permission to change the group" i must stress i am logged on as root and not just with a console open.

jebba
PostPosted: Sun Jul 18, 2004 8:00 pm    Post subject: Reply with quote

You need to add something to your /etc/fstab to have it mounted as the user logged in. This is what the cdrom does, more or less. Perhaps something like:

Code:
/dev/hdc1       /windozsucks         vfat rw,user,noauto 0 0


Then you can right click on the desktop to mount it, or use Disk Management under System Tools in the menu. Also, you can try the word "owner" instead of "user" above.

shabene
PostPosted: Sun Jul 18, 2004 8:57 pm    Post subject: Reply with quote

help! i screwed up! i used your example and changed my ect/fstab with the following

/dev/hda7 /mnt/data vfat rw,user,noauto 0 0

as that is the drive in question, and yes i can change the permissions but it gave me an error when i started a new session as normal user (after reboot just incase) saying that * folder was not accessable, then i found out it was the drive was not accessable. where did i screw up? do i need to space out the commands? here is the whole file...

LABEL=/ / ext3 defaults 1 1
none /dev/pts devpts gid=5,mode=620 0 0
LABEL=/home /home ext3 defaults 1 2
/dev/hda7 /mnt/data vfat rw,user,noauto 0 0
none /proc proc defaults 0 0
none /dev/shm tmpfs defaults 0 0
/dev/hda5 swap swap defaults 0 0
/dev/cdrom /mnt/cdrom udf,iso9660 noauto,owner,kudzu,ro 0 0
/dev/cdrom1 /mnt/cdrom1 udf,iso9660 noauto,owner,kudzu,ro 0 0
/dev/fd0 /mnt/floppy auto noauto,owner,kudzu 0 0

hope it makes sense to you!

afore i forget, much many thanks for all the help so far, bless ya's all.

shabene
PostPosted: Sun Jul 18, 2004 9:04 pm    Post subject: Reply with quote

btw, i admit i have been a pwawn, i didnt back up the file before editing, therefore i now know not how to get my shared dribe back on blag. i must be the weapon bush is looking for!

prey help a sorry and most humble Welshman.

TSS_Killer
PostPosted: Sun Jul 18, 2004 9:16 pm    Post subject: Reply with quote

jebba wrote:
You need to add something to your /etc/fstab to have it mounted as the user logged in. This is what the cdrom does, more or less. Perhaps something like:

Code:
/dev/hdc1       /windozsucks         vfat rw,user,noauto 0 0


Then you can right click on the desktop to mount it, or use Disk Management under System Tools in the menu. Also, you can try the word "owner" instead of "user" above.


Ok i had better success with the vfat thing. instead of 0 0 at the end,put 1 2

jebba
PostPosted: Sun Jul 18, 2004 9:32 pm    Post subject: Reply with quote

Yes, it should be "1 2" instead of "0 0". My bad.

Here's a basic one that allows reading by all but writing only by root:
Code:
/dev/hda7        /win       vfat    defaults        1 2


Don't worry about the spacing, just make it look pretty.

shabene
PostPosted: Sun Jul 18, 2004 9:38 pm    Post subject: Reply with quote

hey i'm only just back from 1 2, do i need to reboot for this?
jebba
PostPosted: Sun Jul 18, 2004 9:41 pm    Post subject: Reply with quote

You never really need to reboot unless you upgrade your kernel. ;)

But rebooting is often an easy way to get things restarted if you're not sure how to do in manually. To unmount/remount that drive, do:

Code:
umount /win
mount /win


Note that is "umount" not "unmount". Been that way for quite awhile... Change "/win" to whatever directory you are mounting it under (e.g. /mnt/windows or whatever).

To mount everything in your fstab, you can run:
Code:
mount -a

shabene
PostPosted: Sun Jul 18, 2004 9:55 pm    Post subject: Reply with quote

well i have the use of the drive back but i am back to square one, ie as in my post...

as a user i can read the drive but not write to it, as root user i may read and write, as root i have access to the right click menu to change permissions, but as i click the box to change the permission to "group write" the x just fades away instantly, if i try to change the file owner i am told "sorry couldnt change the owner" and if i try to change the file group it says "you don't have permission to change the group" i must stress i am logged on as root and not just with a console open.

oh how i wish i knew what i was doing, as in 1? 2? ?

i should read more i guess[/quote]

jebba
PostPosted: Sun Jul 18, 2004 10:13 pm    Post subject: Reply with quote

shabene wrote:
well i have the use of the drive back but i am back to square one, ie as in my post...

Good. You know how to get back to square one. Very necessary sometimes. ;)

shabene wrote:

as a user i can read the drive but not write to it, as root user i may read and write, as root i have access to the right click menu to change permissions, but as i click the box to change the permission to "group write" the x just fades away instantly, if i try to change the file owner i am told "sorry couldnt change the owner" and if i try to change the file group it says "you don't have permission to change the group" i must stress i am logged on as root and not just with a console open.


Ok. How's this:
1) log in as a regular user
2) open a terminal as root
Code:
umount /win

3)Change you /etc/fstab line to:
Code:
/dev/hda7        /win       vfat rw,user,noauto 1 2

4) As the regular user, run "Disk Management" under "System Tools"
5) Select the windos drive and hit "Mount"
6) Play wid it
7) In Disk Management unmount it when you are done (if you want)

shabene wrote:
oh how i wish i knew what i was doing, as in 1? 2?

It's the mounting order. It's the last two items in the /etc/fstab lines.

shabene wrote:
i should read more i guess


Code:
man fstab
man mount

shabene
PostPosted: Sun Jul 18, 2004 10:38 pm    Post subject: Reply with quote

sweet!

gods bless

Display posts from previous:   
Post new topic   Reply to topic    BLAG Forum Index -> support Goto page 1, 2  Next
Page 1 of 2

Protected by Anti-Spam ACP