OESF Portables Forum

Everything Else => Sharp Zaurus => Model Specific Forums => Distros, Development, and Model Specific Forums => Archived Forums => C1000/3x00 General discussions => Topic started by: Howard Roark on April 14, 2005, 11:57:19 am

Title: Cannot Change Samba.conf?
Post by: Howard Roark on April 14, 2005, 11:57:19 am
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?
Title: Cannot Change Samba.conf?
Post by: slackwaresupport on April 14, 2005, 02:43:21 pm
su
Title: Cannot Change Samba.conf?
Post by: Howard Roark on April 14, 2005, 03:04:27 pm
is it also necessary to do a 'chmod 666' to ensure full access?
Title: Cannot Change Samba.conf?
Post by: wiredog on April 15, 2005, 08:50:32 am
Look at this (https://www.oesf.org/index.php?title=Samba_over_non-USB) for Samba on the Z instructions.
Title: Cannot Change Samba.conf?
Post by: bluedevils on April 15, 2005, 09:51:22 am
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).
Title: Cannot Change Samba.conf?
Post by: kenko on February 27, 2006, 11:41:43 pm
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?
Title: Cannot Change Samba.conf?
Post by: tombraider on February 28, 2006, 09:12:26 am
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
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?
[div align=\"right\"][a href=\"index.php?act=findpost&pid=116322\"][{POST_SNAPBACK}][/a][/div]
Title: Cannot Change Samba.conf?
Post by: kenko on March 13, 2006, 01:16:48 am
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?
Title: Cannot Change Samba.conf?
Post by: Meanie on March 13, 2006, 01:28:58 am
Quote
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?
[div align=\"right\"][a href=\"index.php?act=findpost&pid=118282\"][{POST_SNAPBACK}][/a][/div]

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
Title: Cannot Change Samba.conf?
Post by: kenko on March 13, 2006, 02:56:38 am
This is it! Thanks Meanie.