BLAG

BLAG Forums
It is currently Mon Dec 22, 2014 9:22 pm

All times are UTC




Post new topic Reply to topic  [ 19 posts ]  Go to page 1, 2  Next
Author Message
 Post subject: disk permissions
PostPosted: Sat Jul 17, 2004 10:06 am 
Offline

Joined: Wed Jul 07, 2004 11:29 pm
Posts: 20
Location: seated
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


Top
 Profile  
 
 Post subject:
PostPosted: Sat Jul 17, 2004 6:17 pm 
Offline

Joined: Tue Jun 15, 2004 12:02 pm
Posts: 53
Location: North West England
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/linu ... ndows.html
You have to use a console rather than x but if I can do it anyone can :)

David


Top
 Profile  
 
 Post subject:
PostPosted: Sun Jul 18, 2004 9:46 am 
Offline

Joined: Wed Jul 07, 2004 11:29 pm
Posts: 20
Location: seated
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?


Top
 Profile  
 
 Post subject:
PostPosted: Sun Jul 18, 2004 1:55 pm 
Offline

Joined: Mon Apr 19, 2004 1:51 pm
Posts: 125
Location: Bronx,NY
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.


Top
 Profile  
 
 Post subject:
PostPosted: Sun Jul 18, 2004 5:18 pm 
Offline

Joined: Wed Jul 07, 2004 11:29 pm
Posts: 20
Location: seated
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.


Top
 Profile  
 
 Post subject:
PostPosted: Sun Jul 18, 2004 8:00 pm 
Offline
Site Admin

Joined: Sun Mar 14, 2004 3:17 pm
Posts: 4492
Location: Loveland, Colorado, USA
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.


Top
 Profile  
 
 Post subject:
PostPosted: Sun Jul 18, 2004 8:57 pm 
Offline

Joined: Wed Jul 07, 2004 11:29 pm
Posts: 20
Location: seated
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.


Top
 Profile  
 
 Post subject:
PostPosted: Sun Jul 18, 2004 9:04 pm 
Offline

Joined: Wed Jul 07, 2004 11:29 pm
Posts: 20
Location: seated
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.


Top
 Profile  
 
 Post subject:
PostPosted: Sun Jul 18, 2004 9:16 pm 
Offline

Joined: Mon Apr 19, 2004 1:51 pm
Posts: 125
Location: Bronx,NY
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


Top
 Profile  
 
 Post subject:
PostPosted: Sun Jul 18, 2004 9:32 pm 
Offline
Site Admin

Joined: Sun Mar 14, 2004 3:17 pm
Posts: 4492
Location: Loveland, Colorado, USA
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.


Top
 Profile  
 
 Post subject:
PostPosted: Sun Jul 18, 2004 9:38 pm 
Offline

Joined: Wed Jul 07, 2004 11:29 pm
Posts: 20
Location: seated
hey i'm only just back from 1 2, do i need to reboot for this?


Top
 Profile  
 
 Post subject:
PostPosted: Sun Jul 18, 2004 9:41 pm 
Offline
Site Admin

Joined: Sun Mar 14, 2004 3:17 pm
Posts: 4492
Location: Loveland, Colorado, USA
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


Top
 Profile  
 
 Post subject:
PostPosted: Sun Jul 18, 2004 9:55 pm 
Offline

Joined: Wed Jul 07, 2004 11:29 pm
Posts: 20
Location: seated
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]


Top
 Profile  
 
 Post subject:
PostPosted: Sun Jul 18, 2004 10:13 pm 
Offline
Site Admin

Joined: Sun Mar 14, 2004 3:17 pm
Posts: 4492
Location: Loveland, Colorado, USA
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


Top
 Profile  
 
 Post subject:
PostPosted: Sun Jul 18, 2004 10:38 pm 
Offline

Joined: Wed Jul 07, 2004 11:29 pm
Posts: 20
Location: seated
sweet!

gods bless


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 19 posts ]  Go to page 1, 2  Next

All times are UTC


Who is online

Users browsing this forum: No registered users and 0 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group