Help - Search - Members - Calendar
Full Version: Cannot Change Samba.conf?
OESF Forums > Distros, Development, and Model Specific Forums > Model Specific Forums > C1000/3x00 General discussions
Howard Roark
I am trying to edit samba.conf but when I try to save it (or even rename and save) I am denied permission to do that. I have tried a few things to change permissions to save it but nothing seems to have worked.

What do I have to do to save an edited *.conf file?
slackwaresupport
su
Howard Roark
is it also necessary to do a 'chmod 666' to ensure full access?
wiredog
Look at this for Samba on the Z instructions.
bluedevils
Generally speaking you rarely should chmod 666. If you're granting access to a user's home directory (zaurus), then the user should own what's in his home directory already. Granting whole access to Z is not recommended, but if you had to then you will have to share using root's access. It is not good to change permissions on system files (and some you won't be able to).
kenko
I have the same problem. Can't edit the samba.conf. Even i'm su I can't wq on vi. I want to make the modification so that I can samba wirelessly. Is it on permission OR the samba.conf busy?
tombraider
I ALWAYS have problems like this with the Zaurus...drives me batty. I usually wind up doing the following in Advanced File Manager, but you can do it in any Explorer-type app for the Z:

1. Copy the original file to your cf or sd card where you can find it if necessary.
2. Rename the file you want to change in its original location on the Z to samba.conf.txt.
3. Edit the file and save it.
4. Delete the samba.conf file in its original location (be sure you have a backup copy of it somewhere first)
4. Rename the samba.conf.txt to samba.conf in the original location of the old samba.conf file.

I do all of this in a gui environment.

HTH

QUOTE(kenko @ Feb 28 2006, 04:41 AM)
I have the same problem. Can't edit the samba.conf. Even i'm su I can't wq on vi. I want to make the modification so that I can samba wirelessly. Is it on permission OR the samba.conf busy?
*
kenko
Still can't rename or edit the samba.conf file.

It's under /usr/lib.rom/samba, is it a "Read-only file system"? So even I login as su still can't change anything?
Meanie
QUOTE(kenko @ Mar 13 2006, 04:16 PM)
Still can't rename or edit the samba.conf file.

It's under /usr/lib.rom/samba, is it a "Read-only file system"? So even I login as su still can't change anything?
*


This is a recurring problem. The file is on a RO filesys, so what you need to do is

1. break the symlink to the RO filesys, ie rm smb.conf
2. copy the file from the RO filesys to the expected location.
3. change the permision of the file to rw
4. edit the file
kenko
This is it! Thanks Meanie.
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2014 Invision Power Services, Inc.