I want to share a directory to friends. I do remember that it has once
worked before in nautilus just by right-clicking on a directory.
but now, it prompts:
> 'net usershare' returned error 255: net usershare: cannot open
> usershare directory /var/lib/samba/usershares. Error
> Permission denied
> You do not have permission to create a usershare. Ask your
> administrator to grant you permissions to create a share.
>
ls -ld /var/lib/samba/usershares told me
> drwxrwx--T 2 root haldaemon 4096 2010-07-21 21:12 usershares/
I consider the group haldaemon is highly suspicious since it is located
after user 'upload' (see below) I created for uploading. see vipw below.
Who created this user?
There is also a group called haldaemon in my system. (the last line in /etc/group)
> haldaemon:x:121:
I have tried to find other files or directories owned by haldaemon with
intention to finally find out a package which causes a new user
haldaemon. Utilizing command 'find', I did not obtain any valuable
results.
> xiang@xiang-laptop:/$ sudo find ./ -group haldaemon -print
> ./proc/1927
> ./proc/1927/task
> ./proc/1927/task/1927
> ./proc/1927/task/1927/attr
> ./proc/1927/task/1929
> ./proc/1927/task/1929/attr
> ./proc/1927/net
> ./proc/1927/attr
> ./proc/1969
> ./proc/1969/task
> ./proc/1969/task/1969
> ./proc/1969/task/1969/attr
> ./proc/1969/net
> ./proc/1969/attr
> find: ‘./proc/4520/task/4520/fd/5’: No such file or directory
> find: ‘./proc/4520/task/4520/fdinfo/5’: No such file or directory
> find: ‘./proc/4520/fd/5’: No such file or directory
> find: ‘./proc/4520/fdinfo/5’: No such file or directory
> ./var/lib/samba/usershares
> xiang@xiang-laptop:/$ sudo find ./ -user haldaemon -print
> ./proc/1927
> ./proc/1927/task
> ./proc/1927/task/1927
> ./proc/1927/task/1927/attr
> ./proc/1927/task/1929
> ./proc/1927/task/1929/attr
> ./proc/1927/net
> ./proc/1927/attr
> ./proc/1969
> ./proc/1969/task
> ./proc/1969/task/1969
> ./proc/1969/task/1969/attr
> ./proc/1969/net
> ./proc/1969/attr
> find: ‘./proc/4554/task/4554/fd/5’: No such file or directory
> find: ‘./proc/4554/task/4554/fdinfo/5’: No such file or directory
> find: ‘./proc/4554/fd/5’: No such file or directory
> find: ‘./proc/4554/fdinfo/5’: No such file or directory
>
help needed.
Best Regards,
xiang
--
ubuntu-users mailing list
ubuntu-users@lists.ubuntu.com
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users
07-21-2010, 04:26 PM
Tom H
'net usershare' returned error 255
On Wed, Jul 21, 2010 at 10:11 AM, listofx <listofx@gmail.com> wrote:
>
> I want to share a directory to friends. I do remember that it has once
> worked before in nautilus just by right-clicking on a directory.
>
> but now, it prompts:
>
>> * * * * 'net usershare' returned error 255: net usershare: cannot open
>> * * * * usershare directory /var/lib/samba/usershares. Error
>> * * * * Permission denied
>> * * * * You do not have permission to create a usershare. Ask your
>> * * * * administrator to grant you permissions to create a share.
>
> ls -ld /var/lib/samba/usershares told me
>> * * * * drwxrwx--T 2 root haldaemon 4096 2010-07-21 21:12 usershares/
>
> I consider the group haldaemon is highly suspicious since it is located
> after user 'upload' (see below) I created for uploading. see vipw below.
> Who created this user?
>
>> * * * * xiang:x:1000:1000:Xiang Liu,,,,:/home/xiang:/bin/bash
>> * * * * privoxy:x:114:65534::/etc/privoxy:/bin/false
>> * * * * ftp:x:1001:65534::/home/ftp:/bin/false
>> * * * * upload:x:1002:65534::/home/upload:/bin/false
>> * * * * haldaemon:x:115:121:Hardware abstraction layer,,,:/var/run/hald:/bin/false
>
> There is also a group called haldaemon in my system. (the last line in /etc/group)
>> * * * * haldaemon:x:121:
>
> I have tried to find other files or directories owned by haldaemon with
> intention to finally find out a package which causes a new user
> haldaemon. Utilizing command 'find', I did not obtain any valuable
> results.
>
>> * * * * xiang@xiang-laptop:/$ sudo find ./ -group haldaemon -print
>> * * * * xiang@xiang-laptop:/$ sudo find ./ -user haldaemon -print
The uid and gid are different from mine but haldaemon is a valid system user.
Whether the haldaemon group is meant to "own" usershares, I have no
idea. I have never used samba's usershares and have never set up samba
through a GUI.
I am pretty sure that I have seen someone post this error before and
that the solution was to remove and add the user from the sambashare
group before setting up a share.
--
ubuntu-users mailing list
ubuntu-users@lists.ubuntu.com
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users
07-21-2010, 05:00 PM
listofx
'net usershare' returned error 255
On 三, 2010-07-21 at 12:26 -0400, Tom H wrote:
> On Wed, Jul 21, 2010 at 10:11 AM, listofx <listofx@gmail.com> wrote:
> >
> > I want to share a directory to friends. I do remember that it has once
> > worked before in nautilus just by right-clicking on a directory.
> >
> > but now, it prompts:
> >
> >> 'net usershare' returned error 255: net usershare: cannot open
> >> usershare directory /var/lib/samba/usershares. Error
> >> Permission denied
> >> You do not have permission to create a usershare. Ask your
> >> administrator to grant you permissions to create a share.
> >
> > ls -ld /var/lib/samba/usershares told me
> >> drwxrwx--T 2 root haldaemon 4096 2010-07-21 21:12 usershares/
> >
> > I consider the group haldaemon is highly suspicious since it is located
> > after user 'upload' (see below) I created for uploading. see vipw below.
> > Who created this user?
> >
> >> xiang:x:1000:1000:Xiang Liu,,,,:/home/xiang:/bin/bash
> >> privoxy:x:114:65534::/etc/privoxy:/bin/false
> >> ftp:x:1001:65534::/home/ftp:/bin/false
> >> upload:x:1002:65534::/home/upload:/bin/false
> >> haldaemon:x:115:121:Hardware abstraction layer,,,:/var/run/hald:/bin/false
> >
> > There is also a group called haldaemon in my system. (the last line in /etc/group)
> >> haldaemon:x:121:
> >
> > I have tried to find other files or directories owned by haldaemon with
> > intention to finally find out a package which causes a new user
> > haldaemon. Utilizing command 'find', I did not obtain any valuable
> > results.
> >
> >> xiang@xiang-laptop:/$ sudo find ./ -group haldaemon -print
> >> xiang@xiang-laptop:/$ sudo find ./ -user haldaemon -print
>
> The uid and gid are different from mine but haldaemon is a valid system user.
>
> Whether the haldaemon group is meant to "own" usershares, I have no
> idea. I have never used samba's usershares and have never set up samba
> through a GUI.
>
> I am pretty sure that I have seen someone post this error before and
> that the solution was to remove and add the user from the sambashare
> group before setting up a share.
>
haldaemon was introduced by hal, I found.
hal was introduced by arista, a program for video transcode. (10.04)
sudo apt-get --purge autoremove arista
will remove haldaemon in /etc/passwd and /etc/group.
But, arista is not the reason leading to fail. Installing arista(hal)
will not change the group owner of /var/lib/samba/usershares to
haldaemon.
There is a strong possibility that installing kubuntu-netbook over
ubuntu-netbook broke some setting in gnome (the fact,that I gave himself
a taste of kubuntu-netbook today, not mentioned above). Though I have
purged all related packages of kbuntu-netbook, I believe, now, it must
have dirty footprints left.
BTW, 'remove directory /var/lib/samba/usershares and reinstall samba'
has solved my problem.
Thanks, Tom
Best Regards
xiang
--
ubuntu-users mailing list
ubuntu-users@lists.ubuntu.com
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users
07-21-2010, 05:13 PM
NoOp
'net usershare' returned error 255
On 07/21/2010 07:11 AM, listofx wrote:
> Hi,
>
> I want to share a directory to friends. I do remember that it has once
> worked before in nautilus just by right-clicking on a directory.
>
> but now, it prompts:
>
>> 'net usershare' returned error 255: net usershare: cannot open
>> usershare directory /var/lib/samba/usershares. Error
>> Permission denied
>> You do not have permission to create a usershare. Ask your
>> administrator to grant you permissions to create a share.
>>
>
> ls -ld /var/lib/samba/usershares told me
>> drwxrwx--T 2 root haldaemon 4096 2010-07-21 21:12 usershares/
>
> I consider the group haldaemon is highly suspicious since it is located
> after user 'upload' (see below) I created for uploading. see vipw below.
> Who created this user?
>
>> xiang:x:1000:1000:Xiang Liu,,,,:/home/xiang:/bin/bash
>> privoxy:x:114:65534::/etc/privoxy:/bin/false
>> ftp:x:1001:65534::/home/ftp:/bin/false
>> upload:x:1002:65534::/home/upload:/bin/false
>> haldaemon:x:115:121:Hardware abstraction layer,,,:/var/run/hald:/bin/false
>
> There is also a group called haldaemon in my system. (the last line in /etc/group)
>> haldaemon:x:121:
Normal. haldaemon is used for:
$ id haldaemon
uid=107(haldaemon) gid=114(haldaemon)
groups=114(haldaemon),24(cdrom),25(floppy),46(plug dev),104(scanner),115(powerdev)
But I've no idea why your usershares are assigned to that group.
...
--
ubuntu-users mailing list
ubuntu-users@lists.ubuntu.com
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users
07-22-2010, 05:44 PM
Marlon
'net usershare' returned error 255
Yo!!
sudo gedit /etc/samba/smb.conf
put some lines in the end
[MYFOLDER]
**path = /home/tony/shares
**guest ok = yes
**browseable = yes
**read >
**writeable = yes
**create mask = 0756
**force create mode = 0756
#///////
explanation
MYFOLDER is the name that will apear when you browse in windows...
path : is the whole path to the folder
guest ok: allows everyone to access
browseable: shows the folder when you opens the parent one
mask is the permissions that the files puted by a windows machine will put in the write mode...
after all
sudo /etc/init.d/samba restart
if occours some errors, sudo apt-get install samba
cheers
Marlon Valério
┌──────────────┐
** T0ddy Stone Brains
└──────────────┘
2010/7/21 NoOp <glgxg@sbcglobal.net>
On 07/21/2010 07:11 AM, listofx wrote:
> Hi,
>
> I want to share a directory to friends. I do remember that it has once
> worked before in nautilus just by right-clicking on a directory.
>
> but now, it prompts:
>
>> * * * * 'net usershare' returned error 255: net usershare: cannot open