Shoutbox

ubuntu live smb password - Printable Version

-Shoutbox (https://shoutbox.menthix.net)
+-- Forum: MsgHelp Archive (/forumdisplay.php?fid=58)
+--- Forum: Skype & Technology (/forumdisplay.php?fid=9)
+---- Forum: Tech Talk (/forumdisplay.php?fid=17)
+----- Thread: ubuntu live smb password (/showthread.php?tid=86892)

ubuntu live smb password by Jarrod on 10-26-2008 at 09:59 AM

i'm using the Ubuntu live cd i'm using Feisty Fawn cos i lost my hardy disc,
so i don't want to install it just use it live, i set up smb but when i try to access the share the windows computer asks for a password i tried "ubuntu" but that didn't work anyone else know what it could be?


RE: ubuntu live smb password by andrewdodd13 on 10-26-2008 at 10:34 AM

$ sudo -i
$ useradd jarrod
$ passwd jarrod
>
$ smbpasswd -a jarrod
> // don't have to be same password

Now, you should be able to login with jarrod + password. At least, that's what I would expect... you may have to explicity define HOSTNAME\jarrod rather than just jarrod though. :)


RE: ubuntu live smb password by Jarrod on 10-26-2008 at 10:42 AM

i'm not sure i can create users on a live cd?


RE: ubuntu live smb password by andrewdodd13 on 10-26-2008 at 10:47 AM

I think the filesystem should be mounted into a virtual space and should in theory be writable... I know a couple of the live CDs I've made are like this.

I could be wrong though, Feisty is a bit old now...


RE: ubuntu live smb password by Jarrod on 10-26-2008 at 10:51 AM

well i did tried and got this:

code:
useradd: unable to lock password file

so it tried this
code:
root@ubuntu:~# smbpasswd -a ubuntu

and went to my 98 machine and clicked the share and it said enter network password i entered the password i set and it still said it was wrong,

i'm thinking it might be cos i can't enter my username on the 98 machine


RE: ubuntu live smb password by andrewdodd13 on 10-26-2008 at 12:02 PM

Hmm also, it's because it couldn't lock the password file: ie write to it. Guess your file system is read only.

You should be able to authenticate using Windows 98. My next step would be to say edit the smb.conf file, change it so it doesn't require a log on and do /etc/init.d/samba restart but you're likely unable to edit smb.conf as well.


RE: ubuntu live smb password by Jarrod on 10-26-2008 at 12:10 PM

it can't be 2 bad cos i had to download and install samba, so i'll check out the config in the morning thanx


RE: ubuntu live smb password by andrewdodd13 on 10-26-2008 at 10:21 PM

Also, if you do have some write permissions (which you must) you could just do smbpasswd -a root and then try that.


RE: ubuntu live smb password by Jarrod on 10-26-2008 at 10:43 PM

wat i did was switch to root in terminal then modify smb.conf i didn't really know what i was doing but it appears to work i just can't seem to copy anything off from the 98 machine