rear/write permissions for mount.cifs

Hello,

I have an All6500 running as raid 1 file server which is delivered with a samba server which may not be modified (at least I didn’t manage)

On my PC, I am running openSuse 11 which can connect to the file server without any problem for read and write access simply by typing smb://192.168.0.100/ (the servers ip) into the address bar of nautilus.

Now, I’d like to mount the server on a certain mount point in the file system of my PC in order to be able to make backups using cpio or the like.

Therefore, I added the line
//192.168.0.100/daten /keller/daten cifs users,uid=josef,gid=users,rw,credentials=/root/smb.pwd,dir_mode=0022,file_mode=0664,utf8=true,noacl 0 0
to /etc/fstab.

Mounting does not work at start-up which is the minor problem for now… After mounting the file server as su by typing mount -a

ls -la /keller/daten works fine and lists the whole content of the directroy, for example
-rwxrwxrw- 1 josef users 706 22. Mai 2008 texput.log
and
ls -la /keller/
drwxrwx— 23 josef users 0 12. Jan 23:35 daten

However, execution of the command
cp /keller/daten/texput.log /home/josef/
cp: Lesen von „/keller/daten/texput.log“: Keine Berechtigung

is denied because I (whoami -> josef) lack the rights for reading the file.

Any ideas?

Josef

seppal wrote:

> ls -la /keller/daten works fine and lists the whole content of the
> directroy, for example
> -rwxrwxrw- 1 josef users 706 22. Mai 2008 texput.log
> and
> ls -la /keller/
> drwxrwx— 23 josef users 0 12. Jan 23:35 daten
>
> However, execution of the command
> cp /keller/daten/texput.log /home/josef/
> cp: Lesen von „/keller/daten/texput.log“: Keine Berechtigung
>
> is denied because I (whoami → josef) lack the rights for reading the
> file.
>
> Any ideas?

What are the permission of /keller itself?

ls -la /
drwxrwxrwx 5 josef users 4096 11. Jan 19:54 keller

seppal wrote:
> ls -la /
> drwxrwxrwx 5 josef users 4096 11. Jan 19:54 keller

Looks fine.
Sorry, I can’t think of anything else to help you.

As nautilus works, do you know where I could find the settings it uses for connecting to the samba server (just as start point for trouble shooting…)?

Josef

seppal wrote:
> As nautilus works, do you know where I could find the settings it uses
> for connecting to the samba server (just as start point for trouble
> shooting…)?

Again sorry, but no. I use Krusader most of the times when I’m not using a shell.

Have you tried to run the smbd daemon in foreground debug mode (-F -d2)?
Maybe that sheds some light.