Author Topic: Cannot Change Samba.conf?  (Read 4405 times)

Howard Roark

  • Jr. Member
  • **
  • Posts: 63
    • View Profile
Cannot Change Samba.conf?
« 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?
SL-6000L, CG-AE06 Camera, Battery Sled, Trendnote CF Lan, 6G Hitachi CF
Sl-C3000+Ambicom WiFi
Palm Tungsten C+Seiko Smartpad
Archos PMA400, Archos AV380 Package
Sony UX-50+Extended battery
Psion 5mx,xNetbook (fabulous mininote!)
Apple eMate
TC1000, TC1100, SC3000
...huge credit card bills..!

slackwaresupport

  • Jr. Member
  • **
  • Posts: 91
    • View Profile
Cannot Change Samba.conf?
« Reply #1 on: April 14, 2005, 02:43:21 pm »
su

Howard Roark

  • Jr. Member
  • **
  • Posts: 63
    • View Profile
Cannot Change Samba.conf?
« Reply #2 on: April 14, 2005, 03:04:27 pm »
is it also necessary to do a 'chmod 666' to ensure full access?
SL-6000L, CG-AE06 Camera, Battery Sled, Trendnote CF Lan, 6G Hitachi CF
Sl-C3000+Ambicom WiFi
Palm Tungsten C+Seiko Smartpad
Archos PMA400, Archos AV380 Package
Sony UX-50+Extended battery
Psion 5mx,xNetbook (fabulous mininote!)
Apple eMate
TC1000, TC1100, SC3000
...huge credit card bills..!

wiredog

  • Newbie
  • *
  • Posts: 45
    • View Profile
Cannot Change Samba.conf?
« Reply #3 on: April 15, 2005, 08:50:32 am »
Look at this for Samba on the Z instructions.
Earth First!
(We can strip mine the rest later.)

bluedevils

  • Hero Member
  • *****
  • Posts: 1284
    • View Profile
    • http://
Cannot Change Samba.conf?
« Reply #4 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).
« Last Edit: April 15, 2005, 09:52:01 am by bluedevils »
I'm now an iphone user and use my zaurii as serial terminals, perl and shell scripting and when I need 640x480 screens

sl-c3100/pda cacko 1.23 | sl-6000l/needs battery | sl-c760/server pdaxrom rc12 | Former sl-5500/tkcrom owner (sister's birthday gift)

kenko

  • Newbie
  • *
  • Posts: 20
    • View Profile
Cannot Change Samba.conf?
« Reply #5 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?
SL-C3100
pdaXrom Beta2 1.10
Scandisk SD 1 GB
Pretec WiFi CF

tombraider

  • Sr. Member
  • ****
  • Posts: 409
    • View Profile
    • http://atoah.com/zaurus/
Cannot Change Samba.conf?
« Reply #6 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]
« Last Edit: February 28, 2006, 10:24:54 am by tombraider »
Learning Chinese?  Have a Mac?  Try Hanzi Master: Download for free

Tombraider's Zaurus C1000 Tips Web Site

SL-3200 from Conics.net: Sharp ROM| SL-C1000: Pdaxrom Beta 3

kenko

  • Newbie
  • *
  • Posts: 20
    • View Profile
Cannot Change Samba.conf?
« Reply #7 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?
SL-C3100
pdaXrom Beta2 1.10
Scandisk SD 1 GB
Pretec WiFi CF

Meanie

  • Hero Member
  • *****
  • Posts: 2803
    • View Profile
    • http://www.users.on.net/~hluc/myZaurus/
Cannot Change Samba.conf?
« Reply #8 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
SL-C3000 - pdaXii13 build5.4.9 (based on pdaXrom beta3) / SL-C3100 - Sharp ROM 1.02 JP (heavily customised)
Netgear MA701 CF, SanDisk ConnectPlus CF, Socket Bluetooth CF, 4GB Kingston CF,  4GB pqi SD, 4GB ChoiceOnly SD, 2GB SanDisk SD USB Plus, 1GB SanDisk USB Plus, 1GB Transcend SD, 2GB SanDisk MicroSD with SD adaptor, Piel Frama Leather Case, GoldX 5-in-1 USB cable, USB hub, USB mouse, USB keyboard, USB ethernet, USB HDD, many other USB accessories...
(Zaurus SL-C3000 owner since March 14. 2005, Zaurus SL-C3100 owner since September 21. 2005)
http://members.iinet.net.au/~wyso/myZaurus - zBook3K

kenko

  • Newbie
  • *
  • Posts: 20
    • View Profile
Cannot Change Samba.conf?
« Reply #9 on: March 13, 2006, 02:56:38 am »
This is it! Thanks Meanie.
SL-C3100
pdaXrom Beta2 1.10
Scandisk SD 1 GB
Pretec WiFi CF