LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices

Reply
 
Search this Thread
Old 12-03-2009, 04:50 PM   #31
rytec
Member
 
Registered: Mar 2009
Location: Belgium
Distribution: Ubuntu server 12.04 LTS / Raspbian Wheezy
Posts: 64

Rep: Reputation: 7

Quote:
Originally Posted by oldjp View Post
User www-data has userid 33 and groupid 33
You can see that without any hack, yust type:
ls -l

If you define on your linux box an user
with userid=33 and groupid 33, you will have read/write access to mybookworld shares
example:
Code:
adduser  -u 33 -g 33 mybook
I have the same issue, i can't solve this with your information. I'm sure I'm doing something wrong.

I have this Mybook in my network and made a share "MUSIC" on it through the webinterface.
Then in my ubuntu server I make this mount :

root@server:~# mount -t cifs -o username=user,password=passwd,uid=33,gid=33 //IP.OF.MY.BOOK/MUSIC /media/mybook

then it aceepts it and I can see the mount, do I have to chown /media/mybook ?
When I run Midnight commander as root and I try to copy some folders and files to /media/mybook it gives me this error
chown: changing ownership....... permission denied

It doe smake only the first foldername but nothing else.

So what am I doing wrong here?
 
Old 12-04-2009, 04:40 AM   #32
oldjp
LQ Newbie
 
Registered: Sep 2007
Location: Belgium
Posts: 5

Rep: Reputation: 0

Hello rytec,

I don't use ubuntu because I prefer to work under root for system command, so I'm currently using fedora 11.
Why didn't you create a user with uid=33 ?

First, I connect to my private network with openvpn , but this is outside this scope.

Under root ,I have just executed this sequence of commands.
Lines beginning with ... are just comments.


Code:
[root@BE506745 etc]adduser  -u 33 -g 33 mybook
... User mybook is created with uid=33
... Group tape already existed with gid= 33
[root@BE506745 etc]passwd mybook
... setup password for mybook
[root@BE506745 etc]# ls -l /mnt/mbw
total 4
drwxr-xr-x. 2 root root 4096 oct.  30 21:26 home
... so, no priviledge for user mybook
[root@BE506745 etc]# mount -t cifs -o username=xxx //mybookworld/home /mnt/mbw/home
Password:
...  I'm accessing share name 'home' without any other parameter.
... mybookworld IP Address is in /etc/hosts
[root@BE506745 etc]# ls -l /mnt/mbw
total 0
drwx------. 54 mybook tape 0 déc.   4 10:54 home
... owner is changed !


from my current user, I'm logging on with user mybook


Code:
[xxx@BE506745 openvpn]$ su - mybook                 
Mot de passe : 
... prompt for mybook password
[mybook@BE506745 ~]$ cd /mnt/mbw/home
[mybook@BE506745 home]$ mkdir toto
... I have R/W access to this share !
[mybook@BE506745 home]$ ls -l|grep toto
drwxr-xr-x.  2 mybook tape      0 déc.   4 10:54 toto


and that's all, it works !

Last edited by oldjp; 12-04-2009 at 04:48 AM.
 
  


Reply

Tags
arm, busybox, nfs, rsync, samba, vpn, wd


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
What is the best book for learning Linux network programming silentray Linux - Networking 3 02-26-2007 10:20 AM
LXer: Test It Out: Early Access Book Programs LXer Syndicated Linux News 0 04-25-2006 11:54 PM
question about book: UNIX Network Programming Barq Linux - Networking 3 12-27-2005 01:36 PM
Would like to network book KDE pembo13 Linux - Networking 1 07-01-2004 12:37 PM
can't access ntfs mount through nfs mount bezoomny Linux - Networking 9 04-14-2004 10:25 AM


All times are GMT -5. The time now is 08:51 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration