Forum Home
Press F1
 
Thread ID: 57943 2005-05-17 03:22:00 Some linux questions (fedora 3) hamstar (4) Press F1
Post ID Timestamp Content User
355851 2005-05-17 03:22:00 Hey guys, took the plunge and installed fedora when my windows packed.

Just got a couple of problems at the moment.

---------------------------1--------------------------
When I mount my hard drives, (ntfs and ro) they mount with root permissions only.

How can I make it available to all users.
In fstab i have:
/dev/sda1 /mnt/sda1 ntfs ro,users,suid 0 0
/dev/hdb1 /mnt/hdb1 ntfs ro,users,suid 0 0
/dev/hda2 /mnt/hda2 ntfs ro,users,suid 0 0

however even when I use the disk manager (which I take it is like mount -a) it is still only root permissions?

How can I make it available to me?

Chill told me to do chmod -R 777 <folder> but that only worked for me in... mandrake I think. Also to put nohide in fstab but that gives me a bad superblock error.

--------------------------2-------------------------
I would also like to know how I can enable ACPI so I can put my computer to sleep like in windows instead of shutting linux down to silence my computer.

Thats about it for now, no doubt I'll be back later....

Cheers in advance.
hamstar
hamstar (4)
355852 2005-05-17 03:31:00 also, anyone know of a good hotkey manager thing for fedora/linux...? hamstar (4)
355853 2005-05-17 03:38:00 What do you mean by "root permissions"? What do ls -l /mnt and ls -l /mnt/* give you? The /mnt and the mount points under it should all be "drwer-er-e" (from the standard mask of 022). That gives read and execute rights on those directories to all users. The files should inherit those rights. You should never set mode to 777. There are good reasons for the standard settings.

I would change the /etc/fstab entries by replacing "users" with "auto". You shouldn't need "suid". That will get them mounted at boot time, and they should behave like any other disk.
Graham L (2)
355854 2005-05-17 04:19:00 Graham's right.

Try Acme for GNOME
KDE has one built in.

swsusp IIRC needs to be enabled in the kernel, and you can Hibernate your PC
Chilling_Silence (9)
355855 2005-05-17 08:41:00 those commands give me the three mount points, that all say

dr-w-------

?
hamstar (4)
355856 2005-05-17 10:37:00 also, anyone know of a good hotkey manager thing for fedora/linux...?

Have you seen Applications->Preferences->Keyboard shortcuts?
johnd (85)
355857 2005-05-17 13:13:00 oooooo...

I have a few more questions.

How can I get Linux to join as part of a windows NAT/ICS network? Thats the only way I'm gonna be getting the net at this time, as fedora really doesn't want to be friends with my 536ep modem.... Can I make linux part of the workgroup WORKGROUP?

Also, I am running windows 2k on VMware for any windows needs that I cant do on linux, I was wondering if it uses the windows layer, or the linux layer to write to physical drives... cos I want to write to my NTFS drives and I don't want Linux thinking it can do that....

Also how can I set up samba to be accessed by other machines. So far I've chucked two drives into the samba config tool I found in System Settings>Server Settings but I have no idea how to access them. i was under the imnpression it was smb://something but that don't work. I'm gonna try putting em under NFS aswell next. Also, if the NTFS drives are under samba/nfs can they be written to without screwing stuff up?

I also want to debug my site file before I bang em on the internet and was pleasantly surprised to see that fedora came stock standard with apache and php! However I think I screwed something up (tweak it till it breaks) and now it doesnt work anymore. All I did was change the htdocs (linux equivalent of) from /var/httpd/htdocs (i think - default setting anyway..) to /home/hamstar/webserver and it decided to throw a hissy..
hamstar (4)
355858 2005-05-17 23:36:00 help? hamstar (4)
355859 2005-05-18 03:30:00 How did the mount points get useless permission bits like that ? Did you create them yourself, or did Fedora do it ? You do mean "rw-" ? or is it "r-e" . You have to have execute to be able to access anything in a directory . read just lets you see what files are in it . (You can access a file if you know it's there, as long as you have execute rights to the directory) .

chmod 755 /mnt/* should fix that .

Find the samba . conf file . That is well commented, or was when I last looked at it . It might be in /etc/samba . . . I don't know . The locate command is handy . (Do an updatedb & if locate doesn't find anything . It takes a wee while to rebuild the database) .
man samba should be helpful too . A SMB server should just appear as part of a local Windows network, and be accessible through the normal desktop page . The smbclient programme is a useful test that the Samba server is working, and what it looks like to the "world" . (I think there's another command which checks the SMB configuration file, too) .

I would guess that W2k running under VMware would be accessing the drives itself: you are running a copy of the OS, but I don't know . If it's through Linux, the RO mounting will prevent writing .

Apache does not run as root, so it can't use files in your home directory without some permission adjustments You could try adding a group which is contains the apache username (might be "nobody" . . . ) and "hamstar" . The location of the httpd files is like that for security . I would be inclined to make a symbolic link of /var/httpd/htdocs pointing to /home/hamstar/webserver .
Graham L (2)
355860 2005-05-18 03:49:00 thanks dude, you cleared up some stuff for me...

and I am sure its dw-r------

As it turns out Acme was built into gnome from version 2.6....

How can I turn on swsusp? Is there any other progs for acpi?
hamstar (4)
1 2