Linux - NetworkingThis forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
I have set up Samba to run off my Linux box and the files that i have on there share ok with the Windows machines on the network. However i wish to enable a couple of the directories to accept files from the windows machines,
I have tried adding the lines
Code:
[Work]
path = /mnt/hdb1/gateway/work
public = yes
guest ok = Yes
writable = yes
to my smb.conf file but it still aint working. I have also 'chmod 755 work' the directory, but that seems to have done nothing. Any one got any ideas becasue i am out?
I am new to all this linux stuff so not quite sure what you mean by who 'owns' the directory. I am in as root and i created the directory, as root. The directory is located at /mnt/hdb1/gateway/work (as shown in the original post). I have tried 'chmod 777 work' but it says:
Code:
mode of `work' changed to 0777 (rwxrwxrwx)
chmod: changing permissions of `work' (requested: 0777, actual: 0755): Operation not permitted
I think you may have hit the nail on the head. ls -l returns
Code:
drwxr-xr-x 5 root root 32768 Nov 13 21:48 work
Is it possible to change this? Or should i set up a new folder differently?
The disc was formatted in Windows XP as Fat32 using partition magic 8, it is just a single partion of 120GB. I then copied some files to it from that computer (as it was quicker than doing it accross the network) before putting it into the Red Hat 9 box. The files on it can be read and written to by RedHat. The files that are shared from it can be read by the windows machine (as read only) but i can not edit them or add additional files to the directories from the networked windows machines.
I am getting tempted to follow your sig's advice "If all else fails: "rm -rf /"" and see if that helps to resolve my problem
i have tried going to /mnt and entering "chmod -v 777 hdb1" but it kicked out the same error.
I then tried using the gui to chnage the permissions and group and owner but it wouldn't let me. I have googled for it and seen that some people refer to changing the settings in fstab, but i am unclear on exactly what i am supposed to change, and what values to change it to.
Do i have to unmount it and then remut it. If so how can i do it so that other users get access?
Sorry for all the questions, i am still trying to find my feet in Linux.
First of all, the directory gateway/work is on your second Hard Drive (hdb1).
In order to change the permissions of a FAT32 partition, you will need to edit the /etc/fstab file.
You should already have a line for /dev/hdb1
On this line, you will need to add the umask option.
For example:
Code:
/dev/hdb1 /mnt/hdb1 vfat defaults,umask=0000 0 0
The next time the machine is rebooted, it will automatically apply the permissions.
Seems to be working now. All i have to do is configure the rest of it now.... so knowing me likei do i think i will probably be looking for more help in the near future.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.