just double checked,
its got the user/pass of my user name in samba on the xubuntu server
just double checked,
its got the user/pass of my user name in samba on the xubuntu server
okay ... let's try this.
on your xubuntu server, add your laptop user like so:
be sure to replace "laptop-username" with your actual laptop user name. also, make sure that when it asks for the password (on the second command), that you enter your laptop users password.Code:sudo useradd -s /bin/true laptop-username sudo smbpasswd -L -a laptop-username sudo smbpasswd -L -e laptop-username
restart your samba server for good measure:
then update your credentials file on the laptop so that it contains your laptop username and password. remount, and see if that corrects your permission problems.Code:sudo /etc/init.d/samba restart
1) Samba server howto | 2) mount windows/samba shares with CIFS + unicode | 3) best FTP server howto
4) NFS server/client howto | 5) Easy cross-platform LAN file sharing with FTP
6) Fix samba browsing!!! | 7) Fix Pulse audio
Happy Ubunting!
ok, did that, rebooted everything & its still doing the same.
any file I copy to the server from the laptop gets its owner status changed to root...
ha! i found it!
your problem is highlighted in red, below:
this shows that the group owner of your shared folder is root. this is why your files are getting changed to root permissions.
to correct this problem, on your server, you need to change the group permissions for your share to your user with the following command:
restart your samba server with this command:Code:sudo chgrp -R therapy /home/music
then copy a file into your music folder from your laptop and see if it retains proper permissions. if it does, perform the same modification to the rest of your shares.Code:sudo /etc/init.d/samba restart
1) Samba server howto | 2) mount windows/samba shares with CIFS + unicode | 3) best FTP server howto
4) NFS server/client howto | 5) Easy cross-platform LAN file sharing with FTP
6) Fix samba browsing!!! | 7) Fix Pulse audio
Happy Ubunting!
righto, changed the permissions on the server
still no joy...Code:therapy@BOB:~$ stat %a /home/music stat: cannot stat `%a': No such file or directory File: `/home/music' Size: 4096 Blocks: 8 IO Block: 4096 directory Device: 813h/2067d Inode: 7905281 Links: 6 Access: (0770/drwxrwx---) Uid: ( 1000/ therapy) Gid: ( 1000/ therapy) Access: 2008-07-08 14:59:50.000000000 +1200 Modify: 2008-07-08 14:59:44.000000000 +1200 Change: 2008-07-08 14:59:44.000000000 +1200
then thought to add my login to the therapy group...
still no joy...
Am I getting to the point where I should set this all up from scratch again?
well, at least things look okay for permissions on your server.
nope, i think we'll just need to include your laptop id as a samba user on your xubuntu server.
to do this, use the following commands:
be sure to change "laptop-user" to your actual laptop users id. also, with the second command, be sure to enter the password you use to log into your laptop.Code:sudo useradd -s /bin/true laptop-user sudo smbpasswd -L -a laptop-user sudo smbpasswd -L -e laptop-user
also, update your credentials file on your laptop, so that your laptop userid and password are in it instead of your xubuntu server user id and password.
restart your samba server again, remount the shares, and try to copy a file to your samba share again.
Last edited by dmizer; July 8th, 2008 at 04:25 AM.
1) Samba server howto | 2) mount windows/samba shares with CIFS + unicode | 3) best FTP server howto
4) NFS server/client howto | 5) Easy cross-platform LAN file sharing with FTP
6) Fix samba browsing!!! | 7) Fix Pulse audio
Happy Ubunting!
and thats still a negative...
try copying a file into the music share from your xp machine, and post the output of
Code:ls -l /home/music
1) Samba server howto | 2) mount windows/samba shares with CIFS + unicode | 3) best FTP server howto
4) NFS server/client howto | 5) Easy cross-platform LAN file sharing with FTP
6) Fix samba browsing!!! | 7) Fix Pulse audio
Happy Ubunting!
it would appear that the XP machine does the same... hmmm, I thought it was all good
as compared to:Code:-rwxr--r-- 1 root users 37 2008-07-08 16:14 this is a test file from XP.txt
this is a file saved via the laptop:Code:drwxrwx--- 14 therapy therapy 4096 2008-07-05 17:12 Music
Code:-rwxr--r-- 1 root therapy 8439412 2008-07-08 15:36 file from laptop.pdf
can you link me to the howto you used to create that smb.conf?
1) Samba server howto | 2) mount windows/samba shares with CIFS + unicode | 3) best FTP server howto
4) NFS server/client howto | 5) Easy cross-platform LAN file sharing with FTP
6) Fix samba browsing!!! | 7) Fix Pulse audio
Happy Ubunting!
Bookmarks